mirror of https://github.com/mgba-emu/mgba.git
GBA Serialize: Fix loading states in Hblank
This commit is contained in:
parent
5a877db291
commit
327f1dfe47
1
CHANGES
1
CHANGES
|
@ -49,6 +49,7 @@ Bugfixes:
|
|||
- GB: Fix IRQ disabling on the same T-cycle as an assert
|
||||
- Core: Fix ordering events when scheduling during events
|
||||
- GBA: Reset WAITCNT properly
|
||||
- GBA Serialize: Fix loading states in Hblank
|
||||
Misc:
|
||||
- GBA Timer: Use global cycles for timers
|
||||
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
|
||||
|
|
|
@ -323,7 +323,7 @@ void GBAVideoDeserialize(struct GBAVideo* video, const struct GBASerializedState
|
|||
|
||||
uint32_t when;
|
||||
LOAD_32(when, 0, &state->video.nextEvent);
|
||||
GBARegisterDISPSTAT dispstat = video->p->memory.io[REG_DISPSTAT >> 1];
|
||||
GBARegisterDISPSTAT dispstat = state->io[REG_DISPSTAT >> 1];
|
||||
if (GBARegisterDISPSTATIsInHblank(dispstat)) {
|
||||
video->event.callback = _startHdraw;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue