mirror of https://github.com/mgba-emu/mgba.git
GBA Serialize: Fix using the wrong storage for biosStall
This commit is contained in:
parent
66cc5b1451
commit
f66c17533b
|
@ -69,7 +69,7 @@ void GBASerialize(struct GBA* gba, struct GBASerializedState* state) {
|
|||
}
|
||||
miscFlags = GBASerializedMiscFlagsSetBlocked(miscFlags, gba->cpuBlocked);
|
||||
STORE_32(miscFlags, 0, &state->miscFlags);
|
||||
STORE_32(gba->biosStall, 0, &state->nextIrq);
|
||||
STORE_32(gba->biosStall, 0, &state->biosStall);
|
||||
|
||||
GBAMemorySerialize(&gba->memory, state);
|
||||
GBAIOSerialize(gba, state);
|
||||
|
@ -188,7 +188,7 @@ bool GBADeserialize(struct GBA* gba, const struct GBASerializedState* state) {
|
|||
mTimingSchedule(&gba->timing, &gba->irqEvent, when);
|
||||
}
|
||||
gba->cpuBlocked = GBASerializedMiscFlagsGetBlocked(miscFlags);
|
||||
LOAD_32(gba->biosStall, 0, &state->nextIrq);
|
||||
LOAD_32(gba->biosStall, 0, &state->biosStall);
|
||||
|
||||
GBAVideoDeserialize(&gba->video, state);
|
||||
GBAMemoryDeserialize(&gba->memory, state);
|
||||
|
|
Loading…
Reference in New Issue