GBA: Fix deserializing SOUNDCNT_X
Jeffrey Pfau jeffrey@endrift.com
Fri, 13 Nov 2015 21:35:40 -0800
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/gba/io.c
→
src/gba/io.c
@@ -291,7 +291,7 @@ 0, 0, 0, 0, 0, 0, 0, 0,
// Audio 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, // DMA@@ -874,6 +874,7 @@ if (GBATimerFlagsIsEnable(gba->timers[i].flags)) {
gba->timersEnabled |= 1 << i; } } + GBAAudioWriteSOUNDCNT_X(&gba->audio, gba->memory.io[REG_SOUNDCNT_X >> 1]); GBAMemoryUpdateDMAs(gba, 0); GBAHardwareDeserialize(&gba->memory.hw, state); }