This page is a mirror of Tepples' nesdev forum mirror (URL TBD).
Last updated on Oct-18-2019 Download

Save State File Formats?

Save State File Formats?
by on (#47486)
I noticed one emulator has a mostly well-documnted save-state file format. I forget which one it is...and I'm not at that computer right now so I can't check. However, I also noticed that another emulator (JNes) has a *different* save state file format. The first file format I found that was documented seemed pretty comprehensive. It had sections like "CPUS", "PPUS", "APUS", and mapper stuff also, and 'optional' stuff. I'm wondering if it makes sense to support this format in my emulator? If so, I'm curious about its section for mapper save states...it doesn't say much more than "mapper specific". I've got the format of a NESICIDE project file pretty much down to just bare bones and am thinking about splitting out the NES save-state specific stuff into a .sav file separate from the .npf file. This would unclutter the project file completely to the point where I can start to mess with more 'maintainable' project file formats.

by on (#47487)
SAV files are expected to be for battery SRAM save only. Use a different extension for savestates.
Yeah, looks like every emulator uses its own slightly different incompatible savestate format. Even those which use the 4-byte tags with sizes do things differently.
While some chunks are obviously interchangeable (like a 2K sized RAM chunk), others are not.

by on (#47492)
- Since everything spins around Nestopia, why not its savestate format? Bad documented? I have no clue, but you should definitely give a try.

by on (#47497)
Fx3 wrote:
Since everything spins around Nestopia


... Do I even want to know where this came from? :?

Perhaps I'll choose XML. :shock:

by on (#47529)
NESICIDE wrote:
Fx3 wrote:
Since everything spins around Nestopia


... Do I even want to know where this came from? :?

Perhaps I'll choose XML. :shock:


Now, we're going offtopic. Every single person points Nestopia. If you don't do that, fine... :) but I couldn't resist. Sorry, I wasn't joking and you wouldn't need to cut me off anyway. -_-;;