all repos — mgba @ 5effd9c1132216b683291baa850965747663b7ff

mGBA Game Boy Advance Emulator

GB, GBA Serialize: Fix loading two states in a row
Vicki Pfau vi@endrift.com
Fri, 22 Feb 2019 22:22:06 -0800
commit

5effd9c1132216b683291baa850965747663b7ff

parent

56d263ef2456baa0781583839d91d3352cad272d

3 files changed, 3 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -22,6 +22,7 @@ - Python: Make sure GB link object isn't GC'd before GB object

- GBA DMA: Fix Display Start DMAs - GBA DMA: Fix DMA start/end timing - Qt: Fix window icon on X11 + - GB, GBA Serialize: Fix loading two states in a row Misc: - GBA Savedata: EEPROM performance fixes - GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
M src/gb/serialize.csrc/gb/serialize.c

@@ -138,7 +138,7 @@ }

if (error) { return false; } - gb->timing.root = NULL; + mTimingClear(&gb->timing); LOAD_32LE(gb->timing.masterCycles, 0, &state->masterCycles); gb->cpu->a = state->cpu.a;
M src/gba/serialize.csrc/gba/serialize.c

@@ -132,7 +132,7 @@ }

if (error) { return false; } - gba->timing.root = NULL; + mTimingClear(&gba->timing); LOAD_32(gba->timing.masterCycles, 0, &state->masterCycles); size_t i;