all repos — mgba @ 9569ccb6349d85b82a9e6ba283d5c9fca3f7d453

mGBA Game Boy Advance Emulator

GBA: Fix warning about too old version of a savestate
Jeffrey Pfau jeffrey@endrift.com
Tue, 17 May 2016 00:17:01 -0700
commit

9569ccb6349d85b82a9e6ba283d5c9fca3f7d453

parent

e81de71f50f1dc7339bb76cda4cd620ce95f1d9a

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/serialize.csrc/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);