Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save file location based on hash/title id #16519

Open
whocares0101 opened this issue May 13, 2024 · 0 comments
Open

Save file location based on hash/title id #16519

whocares0101 opened this issue May 13, 2024 · 0 comments

Comments

@whocares0101
Copy link

For example I have the same rom but with different filenames e.g. "Some Game.bin" and "Some Game (v1).bin"
Now RetroArch will create a save file for each file instead of sharing it.
I'd like to be able to have the save file location based on the hash of the rom, the title id (e.g. SLUS-01324), or the RetroAchievements hash maybe.
This way if I have the same rom with different filenames or if the rom got renamed the correct save file will be used.

Create a sub-directory per hash and store all relevant save data there.

saves/<hash>/sram.srm

saves/<hash>/slot1.mcr
saves/<hash>/slot2.mcr

Save states should also use a sub-directory based on the core library name.

states/mednafen_psx_hw_libretro/<hash>/0.state
states/mednafen_psx_hw_libretro/<hash>/autosave.state

Existing data should be imported if no save is in the new location yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant