Skip to content

Commit 150fc2f

Browse files
committed
don't check SaveRamModified on shutdown
let's flush the saveram unconditionally instead of relying on SaveRamModified which could get unset from autosaves or elsewhere see also #4344
1 parent a2cf4e0 commit 150fc2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BizHawk.Client.EmuHawk/MainForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4094,7 +4094,7 @@ private void CloseGame(bool clearSram = false)
40944094
AddOnScreenMessage("SRAM cleared.");
40954095
}
40964096
}
4097-
else if (Emulator.HasSaveRam() && Emulator.AsSaveRam().SaveRamModified)
4097+
else if (Emulator.HasSaveRam())
40984098
{
40994099
if (!FlushSaveRAM())
41004100
{

0 commit comments

Comments
 (0)