GBA: Fix warning about too old version of a savestate
Jeffrey Pfau jeffrey@endrift.com
Tue, 17 May 2016 00:17:01 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/serialize.c
→
src/gba/serialize.c
@@ -118,7 +118,7 @@ error = true;
} else if (ucheck < GBA_SAVESTATE_MAGIC) { mLOG(GBA_STATE, WARN, "Invalid savestate: expected %08X, got %08X", GBA_SAVESTATE_MAGIC + GBA_SAVESTATE_VERSION, ucheck); error = true; - } else { + } else if (ucheck < GBA_SAVESTATE_MAGIC + GBA_SAVESTATE_VERSION) { mLOG(GBA_STATE, WARN, "Old savestate: expected %08X, got %08X, continuing anyway", GBA_SAVESTATE_MAGIC + GBA_SAVESTATE_VERSION, ucheck); } LOAD_32(ucheck, 0, &state->biosChecksum);