mirror of https://github.com/mgba-emu/mgba.git
GB MBC: Fix MBC30 SRAM
This commit is contained in:
parent
08f10b2d73
commit
eee29545b6
1
CHANGES
1
CHANGES
|
@ -147,6 +147,7 @@ Bugfixes:
|
|||
- 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
|
||||
|
|
|
@ -510,10 +510,10 @@ void _GBMBC3(struct GB* gb, uint16_t address, uint8_t value) {
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue