all repos — mgba @ 8e7cdc61f31c9637f3c1a8ef2727deb05b61d5c3

mGBA Game Boy Advance Emulator

GB MBC: Fix SRAM sizes 4 and 5
Vicki Pfau vi@endrift.com
Tue, 25 Jul 2017 18:35:57 -0700
commit

8e7cdc61f31c9637f3c1a8ef2727deb05b61d5c3

parent

a33304f567bccaf13c78b75dc93b51becc285d36

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -5,6 +5,7 @@ - GBA: Reset active region as needed when loading a ROM

- 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
M src/gb/mbc.csrc/gb/mbc.c

@@ -105,6 +105,12 @@ break;

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) {