fix bug where backup memory resets when rom resets

This commit is contained in:
zeromus 2009-10-06 20:33:39 +00:00
parent 20fe8c2e8a
commit 1f076df6ce
1 changed files with 1 additions and 1 deletions

View File

@ -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();