mirror of https://github.com/mgba-emu/mgba.git
GB MBC: Fix SRAM sizes 4 and 5
This commit is contained in:
parent
a33304f567
commit
8e7cdc61f3
1
CHANGES
1
CHANGES
|
@ -5,6 +5,7 @@ Bugfixes:
|
|||
- Qt: Fix command line debugger closing second game
|
||||
- GB MBC: Pocket Cam memory should be accessible without enabling
|
||||
- GB Memory: Initialize peripheral pointers
|
||||
- GB MBC: Fix SRAM sizes 4 and 5
|
||||
Misc:
|
||||
- Qt: Don't rebuild library view if style hasn't changed
|
||||
|
||||
|
|
|
@ -105,6 +105,12 @@ void GBMBCInit(struct GB* gb) {
|
|||
case 3:
|
||||
gb->sramSize = 0x8000;
|
||||
break;
|
||||
case 4:
|
||||
gb->sramSize = 0x20000;
|
||||
break;
|
||||
case 5:
|
||||
gb->sramSize = 0x10000;
|
||||
break;
|
||||
}
|
||||
|
||||
if (gb->memory.mbcType == GB_MBC_AUTODETECT) {
|
||||
|
|
Loading…
Reference in New Issue