GBA Serialize: Fix loading states in Hblank
Vicki Pfau vi@endrift.com
Sat, 01 Sep 2018 14:59:33 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -49,6 +49,7 @@ - GBA Video: Make layer disabling work consistently
- 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)
M
src/gba/video.c
→
src/gba/video.c
@@ -323,7 +323,7 @@ LOAD_32(video->frameCounter, 0, &state->video.frameCounter);
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 {