GBA Savedata: Fix size of SRAM saves (fixes #883)

This commit is contained in:
Vicki Pfau 2017-09-22 21:19:07 -07:00
parent 1414955da0
commit baa937b68f
3 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ Bugfixes:
- GBA: Fix keypad IRQs not firing when extra buttons are pressed - GBA: Fix keypad IRQs not firing when extra buttons are pressed
- GBA Video: Fix broken sprite blending hack (fixes mgba.io/i/532) - GBA Video: Fix broken sprite blending hack (fixes mgba.io/i/532)
- GBA I/O: Fix reading from a few invalid I/O registers (fixes mgba.io/i/876) - GBA I/O: Fix reading from a few invalid I/O registers (fixes mgba.io/i/876)
- GBA Savedata: Fix size of SRAM saves (fixes mgba.io/i/883)
Misc: Misc:
- Qt: Don't rebuild library view if style hasn't changed - Qt: Don't rebuild library view if style hasn't changed
- SDL: Fix 2.0.5 build on macOS under some circumstances - SDL: Fix 2.0.5 build on macOS under some circumstances

View File

@ -64,7 +64,7 @@ enum {
SIZE_CART0 = 0x02000000, SIZE_CART0 = 0x02000000,
SIZE_CART1 = 0x02000000, SIZE_CART1 = 0x02000000,
SIZE_CART2 = 0x02000000, SIZE_CART2 = 0x02000000,
SIZE_CART_SRAM = 0x00010000, SIZE_CART_SRAM = 0x00008000,
SIZE_CART_FLASH512 = 0x00010000, SIZE_CART_FLASH512 = 0x00010000,
SIZE_CART_FLASH1M = 0x00020000, SIZE_CART_FLASH1M = 0x00020000,
SIZE_CART_EEPROM = 0x00002000, SIZE_CART_EEPROM = 0x00002000,

View File

@ -367,7 +367,7 @@ int GBACheatAddressIsReal(uint32_t address) {
return -0x8; return -0x8;
case REGION_CART_SRAM: case REGION_CART_SRAM:
case REGION_CART_SRAM_MIRROR: case REGION_CART_SRAM_MIRROR:
if ((address & OFFSET_MASK) > SIZE_CART_SRAM) { if ((address & OFFSET_MASK) > SIZE_CART_FLASH512) {
return -0x80; return -0x80;
} }
return -0x8; return -0x8;