all repos — mgba @ 4dae6af9ce48f2aacea57e048c421e7ebec75e35

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

4dae6af9ce48f2aacea57e048c421e7ebec75e35

parent

1a9cf9a4329e51a912ab1b31665c21e897a71cdb

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: