all repos — mgba @ 05c584408cd2a7139d7b20cc6a7fee0c235dfb1d

mGBA Game Boy Advance Emulator

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

05c584408cd2a7139d7b20cc6a7fee0c235dfb1d

parent

9cf667a90b22d7efbc02bf6278bcb95110ef56d8

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

jump to
M CHANGESCHANGES

@@ -136,6 +136,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; }