Scorr / RetroUnity

Unity frontend for the libretro API.
GNU General Public License v3.0
41 stars 23 forks source link

save files? #13

Open flophaus opened 4 years ago

flophaus commented 4 years ago

Using the snes9x2010_libretro.dll I've got the setup working nicely, but after firing off a save in a game there's no save file written anywhere that I can find.

I can confirm that the game isn't saved after I shut down and restart, is there an extra step to getting save files working with the emulator?

Hokage3211 commented 4 years ago

I would also like to see the save file system fixed, using the exact same core and rom files on the retroarch program itself saves properly, but when using this program it doesn't save.

Hokage3211 commented 4 years ago

After a TON of research I got both save files (in-game saves using ram) and save states working, and they are exactly the same as retroarch saves, so you could even load from your progress in retroarch. I'll put up a pull request with all the important code in a bit. Reference files that helped a ton were these: https://github.com/libretro/ludo/blob/6cb15e863f8febb2ccc3d4c84ca5603f05910be8/savefiles/savefiles.go

https://github.com/libretro/libretro-samples/blob/094d8d807da9dff5a0ec5ab4958cb68eb8c275ce/tests/test_advanced/libretro.h