Merge pull request #88 from GregorR/snapshot-pack-status

Pack status registers before snapshotting so they're not lost
This commit is contained in:
Twinaphex 2016-11-28 03:37:49 +01:00 committed by GitHub
commit 66ba1235df

View File

@ -1259,6 +1259,8 @@ void S9xFreezeToStream (STREAM stream)
char buffer[1024];
static uint8 soundsnapshot[SPC_SAVE_STATE_BLOCK_SIZE];
S9xPackStatus();
sprintf(buffer, "%s:%04d\n", SNAPSHOT_MAGIC, SNAPSHOT_VERSION);
WRITE_STREAM(buffer, strlen(buffer), stream);