all repos — mgba @ 6530bfe94a0a3b6e573c2a676a368dfff322742d

mGBA Game Boy Advance Emulator

GBA: Remove bad savestate corruption check
Jeffrey Pfau jeffrey@endrift.com
Wed, 03 Jun 2015 20:31:49 -0700
commit

6530bfe94a0a3b6e573c2a676a368dfff322742d

parent

31993afd2a9bcadda690248f77d0f62363b82b51

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

jump to
M src/gba/serialize.csrc/gba/serialize.c

@@ -82,10 +82,6 @@ if (state->video.nextHblank - state->video.eventDiff < 0) {

GBALog(gba, GBA_LOG_WARN, "Savestate is corrupted: nextHblank is negative"); return; } - if (state->video.lastHblank - state->video.eventDiff < -VIDEO_HBLANK_LENGTH) { - GBALog(gba, GBA_LOG_WARN, "Savestate is corrupted: lastHblank is negative"); - return; - } if (state->timers[0].overflowInterval < 0 || state->timers[1].overflowInterval < 0 || state->timers[2].overflowInterval < 0 || state->timers[3].overflowInterval < 0) { GBALog(gba, GBA_LOG_WARN, "Savestate is corrupted: overflowInterval is negative"); return;