all repos — mgba @ f03b7b11415e541a6f7230db73b4bb752bbe5eeb

mGBA Game Boy Advance Emulator

GBA: Fix deserializing SOUNDCNT_X
Jeffrey Pfau jeffrey@endrift.com
Fri, 13 Nov 2015 21:35:40 -0800
commit

f03b7b11415e541a6f7230db73b4bb752bbe5eeb

parent

5e2e3864b7ecfc308f0f390dbb8b2f9f9aa16199

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/gba/io.csrc/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); }