GBA Serialize: Fix loading states in Hblank

This commit is contained in:
Vicki Pfau 2018-09-01 14:59:33 -07:00
parent 94ec760a9f
commit eb4ef6d8a7
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ Bugfixes:
- GB I/O: DMA register is R/W
- GBA Video: Improve sprite cycle counting (fixes mgba.io/i/1126)
- GBA: Reset WAITCNT properly
- GBA Serialize: Fix loading states in Hblank
Misc:
- FFmpeg: Support libswresample (fixes mgba.io/i/1120, mgba.io/b/123)

View File

@ -321,7 +321,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 {