SRAMPath should be fixed for good now.

This commit is contained in:
n-a-c-h
2005-02-07 22:18:10 +00:00
parent 9f3c9f6b97
commit ad768a9ec2
3 changed files with 4 additions and 6 deletions

View File

@@ -141,9 +141,9 @@ extern unsigned int ZCloseFile(); //Close_File
#ifdef __LINUX__ #ifdef __LINUX__
extern char zcfgdir[1024]; 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 #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 #endif
@@ -162,7 +162,6 @@ unsigned char cfgscanline = 0;
unsigned char cfginterp = 0; unsigned char cfginterp = 0;
unsigned char cfgenterskip = 0; unsigned char cfgenterskip = 0;
unsigned char cfgforce8b = 0; unsigned char cfgforce8b = 0;
unsigned char cfgloadsdir = 0;
unsigned char cfgloadgdir = 0; unsigned char cfgloadgdir = 0;
unsigned char cfgnewgfx = 0; unsigned char cfgnewgfx = 0;
unsigned char cfgvsync = 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("; 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"); 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); sprintf(buffer, "SaveDirectory = %s\r\n\r\n", SRAMDir);
} }

View File

@@ -166,7 +166,6 @@ EXTSYM GUIHQ3X
EXTSYM GUIHQ4X EXTSYM GUIHQ4X
EXTSYM firstsaveinc EXTSYM firstsaveinc
EXTSYM nssdip1,nssdip2,nssdip3,nssdip4,nssdip5,nssdip6 EXTSYM nssdip1,nssdip2,nssdip3,nssdip4,nssdip5,nssdip6
EXTSYM changedsavedir
%ifdef __LINUX__ %ifdef __LINUX__
EXTSYM numlockptr EXTSYM numlockptr

View File

@@ -1684,7 +1684,7 @@ GUIPathKeys:
cmp dword[GUIInputBox],1 cmp dword[GUIInputBox],1
jne .notBox1 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 mov eax,SRAMDir
jmp .boxselected jmp .boxselected
.notBox1 .notBox1