From 066f2e80d623b01d67250fcca73c949662db30e4 Mon Sep 17 00:00:00 2001 From: skidau Date: Sun, 24 May 2015 14:49:28 +0000 Subject: [PATCH] Fixed the save type changing to SRAM on reset, if the game had been overridden to use EEPROM. --- src/gba/Flash.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gba/Flash.cpp b/src/gba/Flash.cpp index 00c9ff99..d8282fbd 100644 --- a/src/gba/Flash.cpp +++ b/src/gba/Flash.cpp @@ -161,6 +161,9 @@ u8 flashRead(u32 address) void flashSaveDecide(u32 address, u8 byte) { + if (saveType == 1) + return; + // log("Deciding save type %08x\n", address); if(address == 0x0e005555) { saveType = 3;