all repos — mgba @ f57b47b3f24063d409d0a50f5fedacdd80ccc1f7

mGBA Game Boy Advance Emulator

GBA Memory: Fix value obtained from missing SRAM
Jeffrey Pfau jeffrey@endrift.com
Sat, 20 Dec 2014 05:17:29 -0800
commit

f57b47b3f24063d409d0a50f5fedacdd80ccc1f7

parent

da612b51e8ebb61e9e7588dbe48b76a815595c4f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-memory.csrc/gba/gba-memory.c

@@ -446,7 +446,7 @@ } else if (memory->savedata.type == SAVEDATA_FLASH512 || memory->savedata.type == SAVEDATA_FLASH1M) {

value = GBASavedataReadFlash(&memory->savedata, address); } else { GBALog(gba, GBA_LOG_GAME_ERROR, "Reading from non-existent SRAM: 0x%08X", address); - value = 7; + value = 0xFF; } break; default: