all repos — mgba @ eee29545b6309176121131944a471a0eceaaf123

mGBA Game Boy Advance Emulator

GB MBC: Fix MBC30 SRAM
Vicki Pfau vi@endrift.com
Wed, 16 Jan 2019 11:46:16 -0800
commit

eee29545b6309176121131944a471a0eceaaf123

parent

08f10b2d73b3a17db1284acdd15e3b9f4ef964c1

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

jump to
M CHANGESCHANGES

@@ -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.csrc/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; }