From ad768a9ec207ab105f7e3db8722eb9dc9c1320e4 Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Mon, 7 Feb 2005 22:18:10 +0000 Subject: [PATCH] SRAMPath should be fixed for good now. --- zsnes/src/cfgload.c | 7 +++---- zsnes/src/gui/gui.asm | 1 - zsnes/src/gui/guikeys.inc | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/zsnes/src/cfgload.c b/zsnes/src/cfgload.c index eaacba77..28284215 100644 --- a/zsnes/src/cfgload.c +++ b/zsnes/src/cfgload.c @@ -141,9 +141,9 @@ extern unsigned int ZCloseFile(); //Close_File #ifdef __LINUX__ extern char zcfgdir[1024]; -unsigned char changedsavedir = 1; //Set to yes, since savedir is always set and considered to be changed +unsigned char cfgloadsdir = 1; //Set to yes, since savedir is always set and considered to be changed #else -unsigned char changedsavedir = 0; //Only set to yes if modified in the paths window +unsigned char cfgloadsdir = 0; //Only set to yes if modified in the paths window #endif @@ -162,7 +162,6 @@ unsigned char cfgscanline = 0; unsigned char cfginterp = 0; unsigned char cfgenterskip = 0; unsigned char cfgforce8b = 0; -unsigned char cfgloadsdir = 0; unsigned char cfgloadgdir = 0; unsigned char cfgnewgfx = 0; unsigned char cfgvsync = 0; @@ -562,7 +561,7 @@ void DOScreatenewcfg() WRITE_LINE("; Savefile directory. Leave it blank if you want the save files to be in the\r\n"); WRITE_LINE("; same directory as the games. It should be in a format like : C:\\dir\\dir\r\n\r\n"); - if (changedsavedir || cfgloadsdir) + if (cfgloadsdir) { sprintf(buffer, "SaveDirectory = %s\r\n\r\n", SRAMDir); } diff --git a/zsnes/src/gui/gui.asm b/zsnes/src/gui/gui.asm index 9127421f..368fc8b1 100644 --- a/zsnes/src/gui/gui.asm +++ b/zsnes/src/gui/gui.asm @@ -166,7 +166,6 @@ EXTSYM GUIHQ3X EXTSYM GUIHQ4X EXTSYM firstsaveinc EXTSYM nssdip1,nssdip2,nssdip3,nssdip4,nssdip5,nssdip6 -EXTSYM changedsavedir %ifdef __LINUX__ EXTSYM numlockptr diff --git a/zsnes/src/gui/guikeys.inc b/zsnes/src/gui/guikeys.inc index 892a5889..c75bf57c 100644 --- a/zsnes/src/gui/guikeys.inc +++ b/zsnes/src/gui/guikeys.inc @@ -1684,7 +1684,7 @@ GUIPathKeys: cmp dword[GUIInputBox],1 jne .notBox1 - mov byte[changedsavedir],1 ;Need this to know if we should save the path + mov byte[cfgloadsdir],1 ;Need this to know if we should save the path mov eax,SRAMDir jmp .boxselected .notBox1