Files
grout/sync/directory_saves.go
Brandon T. Kowalski fa1aabc0b4 feat: add directory-based save platform registry for PSP
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.
2026-03-28 14:22:19 -04:00

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]
}