mirror of
https://github.com/rommapp/grout.git
synced 2026-04-23 06:54:36 +00:00
fa1aabc0b4
PPSSPP stores saves as Game ID folders (e.g., UCUS98662_GameData0/) rather than flat files. This registry identifies platforms that need directory zipping for upload and Game ID resolution for ROM matching.
18 lines
681 B
Go
18 lines
681 B
Go
package sync
|
|
|
|
// DirectorySavePlatforms maps RomM fs_slug to platform slugs where saves are
|
|
// stored as directories (e.g., PPSSPP uses Game ID folders containing save files)
|
|
// rather than individual files alongside other saves.
|
|
//
|
|
// These require special handling during sync: the entire directory must be zipped
|
|
// for upload and unzipped on download. Matching saves to ROMs requires Game ID
|
|
// resolution rather than filename matching.
|
|
var DirectorySavePlatforms = map[string]bool{
|
|
"psp": true,
|
|
}
|
|
|
|
// IsDirectorySavePlatform returns true if the platform stores saves as directories.
|
|
func IsDirectorySavePlatform(fsSlug string) bool {
|
|
return DirectorySavePlatforms[fsSlug]
|
|
}
|