mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix freeze when loading a savestate that was in the middle of saving
This commit is contained in:
parent
1bb496d0fe
commit
7fd25804f5
|
@ -548,6 +548,7 @@ void GBASavedataDeserialize(struct GBASavedata* savedata, const struct GBASerial
|
|||
if (GBASerializedSavedataFlagsIsDustSettling(flags)) {
|
||||
uint32_t when;
|
||||
LOAD_32(when, 0, &state->savedata.settlingDust);
|
||||
mTimingDeschedule(savedata->timing, &savedata->dust);
|
||||
mTimingSchedule(savedata->timing, &savedata->dust, when);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue