From 24fd064c63599749058accef5b9d5734245db63d Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Thu, 30 Dec 2004 18:21:48 +0000 Subject: [PATCH] Fixed escape to GUI crash if .srm file is readonly. --- zsnes/src/gui/gui.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsnes/src/gui/gui.asm b/zsnes/src/gui/gui.asm index 722c3ce0..30a85f44 100644 --- a/zsnes/src/gui/gui.asm +++ b/zsnes/src/gui/gui.asm @@ -1508,7 +1508,9 @@ NEWSYM SaveSramData pop edx ;Restore data to save call Write_File call Close_File + push edx ;Dirty hack for the next line .failed + pop edx ;This is needed here because if the jump to failed is carried out, edx is never popped stim .savesramdone