mirror of https://github.com/mgba-emu/mgba.git
GBA Serialize: Fix loading states in Hblank
This commit is contained in:
parent
94ec760a9f
commit
eb4ef6d8a7
1
CHANGES
1
CHANGES
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue