GB MBC: Fix MBC30 SRAM
Vicki Pfau vi@endrift.com
Wed, 16 Jan 2019 11:46:16 -0800
2 files changed,
3 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -147,6 +147,7 @@ - SDL: Fix handling of invalid gamepads (fixes mgba.io/i/1239)
- Libretro: Fix adding codes with hooks - GBA: Fix GB Player features - Qt: Ensure FATAL logs reach log view + - GB MBC: Fix MBC30 SRAM Misc: - mGUI: Add SGB border configuration option - mGUI: Add support for different settings types
M
src/gb/mbc.c
→
src/gb/mbc.c
@@ -510,10 +510,10 @@ }
GBMBCSwitchBank(gb, bank); break; case 0x2: - if (value < 4) { + if (value < 8) { GBMBCSwitchSramBank(gb, value); memory->rtcAccess = false; - } else if (value >= 8 && value <= 0xC) { + } else if (value <= 0xC) { memory->activeRtcReg = value - 8; memory->rtcAccess = true; }