nesbox / emulator

Emulator of NES, Super Nintendo, Sega Mega Drive, GameBoy video consoles
http://nesbox.com/emulator/
MIT License
590 stars 247 forks source link

Nesbox save state format #76

Open HDeDeDe opened 6 years ago

HDeDeDe commented 6 years ago

Hi, I just wanted to know how nesbox save states are formatted, i'm trying to make a pseudo save feature where you insert a base64 code and it gives you a save state in return but I am not sure how the save states work. Specifically I am talking about the Genesis save states. The way I am trying to make the save states is to manually edit part of the Genesis' 68k ram but I not only noticed that the file sizes vary wildly depending on the save state, but they are not set up in the same way the ram is. Does the nesbox emulator save the ram exactly and then copy it back into memory when a save state is loaded? If so is it possible to convert the save state back into ram values?

seethingword commented 6 years ago

gamename.romtype.save