|
Post by ripper713 on Mar 19, 2006 22:09:26 GMT -5
Has the save state format for pSX ever been released and if so where is it located? Being able to edit pSX saves combined with the debugger would allow for some serious hacking power.
|
|
|
Post by pSX Author on Mar 20, 2006 1:28:20 GMT -5
The save state format is a chunked file format and some of the data is specific to particular versions of the emulator so I probably will not be documenting it fully (the emulator needs to save quite a lot of state that isn't directly related to the PS1).
I can give you some info though:
The file header is: 'A','R','S','2'
The rest of the file is composed of chunks, each chunk has an 8 byte header:
struct chunk_header { unsigned int type, size; };
which is directly followed by size bytes of data.
Probably the only chunk that would be useful to you is the RAM chunk (type==0x004D4152). It contains 2mb+1k of data (2mb=main ram, 1k=scratch pad).
All other chunks are specific to the version of the emulator and subject to change.
I am thinking about compressing the state saves in a future version btw (they will be compressed using zlib though so it would be easy to decompress them in a util).
|
|
|
Post by ripper713 on Mar 20, 2006 8:01:32 GMT -5
Thank you. That is all I needed to know.
|
|
|
Post by Squaresoft74 on Mar 20, 2006 10:41:24 GMT -5
I am thinking about compressing the state saves in a future version btw (they will be compressed using zlib though so it would be easy to decompress them in a util). Not that's it's too much pain to manualy unpack them, but could the compressed states be optional ?
|
|