GBA I/O: SOUNDCNT_HI is readable when sound is off
RidgeX ridge.shrubsall@gmail.com
Tue, 27 Nov 2018 12:34:00 +0000
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -139,6 +139,7 @@ - Core: Remember to deinit proxy ring FIFO
- GBA Savedata: Fix EEPROM writing codepath when savetype is not EEPROM - Core: Reroot timing list when (de)scheduling - GB Video: Changing LYC while LCDC off doesn't affect STAT (fixes mgba.io/i/1224) + - GBA I/O: SOUNDCNT_HI is readable when sound is off Misc: - mGUI: Add SGB border configuration option - mGUI: Add support for different settings types
M
src/gba/io.c
→
src/gba/io.c
@@ -841,7 +841,6 @@ case REG_SOUND3CNT_X:
case REG_SOUND4CNT_LO: case REG_SOUND4CNT_HI: case REG_SOUNDCNT_LO: - case REG_SOUNDCNT_HI: if (!GBAudioEnableIsEnable(gba->memory.io[REG_SOUNDCNT_X >> 1])) { // TODO: Is writing allowed when the circuit is disabled? return 0;@@ -858,6 +857,7 @@ case REG_WININ:
case REG_WINOUT: case REG_BLDCNT: case REG_BLDALPHA: + case REG_SOUNDCNT_HI: case REG_SOUNDCNT_X: case REG_WAVE_RAM0_LO: case REG_WAVE_RAM0_HI: