mirror of https://github.com/mgba-emu/mgba.git
GB, GBA Serialize: Fix loading two states in a row
This commit is contained in:
parent
56d263ef24
commit
5effd9c113
1
CHANGES
1
CHANGES
|
@ -22,6 +22,7 @@ Bugfixes:
|
|||
- 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
|
||||
|
|
|
@ -138,7 +138,7 @@ bool GBDeserialize(struct GB* gb, const struct GBSerializedState* state) {
|
|||
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;
|
||||
|
|
|
@ -132,7 +132,7 @@ bool GBADeserialize(struct GBA* gba, const struct GBASerializedState* state) {
|
|||
if (error) {
|
||||
return false;
|
||||
}
|
||||
gba->timing.root = NULL;
|
||||
mTimingClear(&gba->timing);
|
||||
LOAD_32(gba->timing.masterCycles, 0, &state->masterCycles);
|
||||
|
||||
size_t i;
|
||||
|
|
Loading…
Reference in New Issue