mirror of https://github.com/mgba-emu/mgba.git
GBA: Remove bad savestate corruption check
This commit is contained in:
parent
31993afd2a
commit
6530bfe94a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue