From 1f076df6cea8c97a151b88f59ad66d4d1d19efbe Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 6 Oct 2009 20:33:39 +0000 Subject: [PATCH] fix bug where backup memory resets when rom resets --- desmume/src/MMU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index e9884875b..cf4f4a0da 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -976,7 +976,7 @@ void MMU_Reset() //until we improve all our session tracking stuff, we need to save the backup memory filename std::string bleh = MMU_new.backupDevice.filename; new(&MMU_new) MMU_struct_new; - MMU_new.backupDevice.filename = bleh; + MMU_new.backupDevice.load_rom(bleh.c_str()); MMU_timing.arm7codeFetch.Reset(); MMU_timing.arm7dataFetch.Reset();