Skip to content

Commit

Permalink
snapshot: Store fixed string instead of ROMFilename.
Browse files Browse the repository at this point in the history
  • Loading branch information
bearoso committed May 10, 2023
1 parent 7b9cadb commit 8a498a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ void S9xFreezeToStream (STREAM stream)
sprintf(buffer, "%s:%04d\n", SNAPSHOT_MAGIC, SNAPSHOT_VERSION);
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);

FreezeStruct(stream, "CPU", &CPU, SnapCPU, COUNT(SnapCPU));
Expand Down

0 comments on commit 8a498a1

Please sign in to comment.