all repos — mgba @ 7fd25804f50318da2d33ea8314d20df1c14a5587

mGBA Game Boy Advance Emulator

GBA: Fix freeze when loading a savestate that was in the middle of saving
Vicki Pfau vi@endrift.com
Sat, 04 Feb 2017 11:49:07 -0800
commit

7fd25804f50318da2d33ea8314d20df1c14a5587

parent

1bb496d0feee858eb964c0426ca6a97d6dc1aba6

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

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

@@ -548,6 +548,7 @@

if (GBASerializedSavedataFlagsIsDustSettling(flags)) { uint32_t when; LOAD_32(when, 0, &state->savedata.settlingDust); + mTimingDeschedule(savedata->timing, &savedata->dust); mTimingSchedule(savedata->timing, &savedata->dust, when); } }