GBA: Remove bad savestate corruption check

This commit is contained in:
Jeffrey Pfau 2015-06-03 20:31:49 -07:00
parent 31993afd2a
commit 6530bfe94a
1 changed files with 0 additions and 4 deletions

View File

@ -82,10 +82,6 @@ void GBADeserialize(struct GBA* gba, const struct GBASerializedState* state) {
GBALog(gba, GBA_LOG_WARN, "Savestate is corrupted: nextHblank is negative"); GBALog(gba, GBA_LOG_WARN, "Savestate is corrupted: nextHblank is negative");
return; 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) { 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"); GBALog(gba, GBA_LOG_WARN, "Savestate is corrupted: overflowInterval is negative");
return; return;