GBA Serialize: Fix using the wrong storage for biosStall

This commit is contained in:
Vicki Pfau 2020-08-10 19:21:46 -07:00
parent 66cc5b1451
commit f66c17533b
1 changed files with 2 additions and 2 deletions

View File

@ -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);