snapshot: Store fixed string instead of ROMFilename.

This commit is contained in:
BearOso 2023-05-10 13:48:41 -05:00
parent 7b9cadb3a1
commit 8a498a11d4

View File

@ -1175,7 +1175,7 @@ void S9xFreezeToStream (STREAM stream)
sprintf(buffer, "%s:%04d\n", SNAPSHOT_MAGIC, SNAPSHOT_VERSION); sprintf(buffer, "%s:%04d\n", SNAPSHOT_MAGIC, SNAPSHOT_VERSION);
WRITE_STREAM(buffer, strlen(buffer), stream); WRITE_STREAM(buffer, strlen(buffer), stream);
sprintf(buffer, "NAM:%06d:%s%c", (int) Memory.ROMFilename.length() + 1, Memory.ROMFilename.c_str(), 0); sprintf(buffer, "NAM:%06d:%s%c", 8, "Removed", 0);
WRITE_STREAM(buffer, strlen(buffer) + 1, stream); WRITE_STREAM(buffer, strlen(buffer) + 1, stream);
FreezeStruct(stream, "CPU", &CPU, SnapCPU, COUNT(SnapCPU)); FreezeStruct(stream, "CPU", &CPU, SnapCPU, COUNT(SnapCPU));