Fixed various save files not working correctly when loading ROM via command line. Debian: is it so hard to pass back patches?
This commit is contained in:
@@ -501,27 +501,28 @@ void obtaindir()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char fnamest, fnames;
|
|
||||||
|
|
||||||
void GetFilename()
|
void GetFilename()
|
||||||
{
|
{
|
||||||
char *tmp = &fnamest;
|
extern char fnamest, fnames;
|
||||||
char size;
|
extern int statefileloc;
|
||||||
|
char *tmp = &fnamest;
|
||||||
|
char size;
|
||||||
|
|
||||||
*tmp = '/';
|
*tmp = '/';
|
||||||
while (*tmp!=0) tmp++;
|
while (*tmp!=0) tmp++;
|
||||||
while (*tmp!='/') tmp--;
|
while (*tmp!='/') tmp--;
|
||||||
size = (strlen(tmp)-1) & 0xFF;
|
size = (strlen(tmp)-1) & 0xFF;
|
||||||
strcpy(&fnamest, tmp);
|
strcpy(&fnamest, tmp);
|
||||||
fnamest = size;
|
fnamest = size;
|
||||||
|
statefileloc-=(tmp-&fnamest);
|
||||||
|
|
||||||
tmp = &fnames;
|
tmp = &fnames;
|
||||||
*tmp = '/';
|
*tmp = '/';
|
||||||
while (*tmp!=0) tmp++;
|
while (*tmp!=0) tmp++;
|
||||||
while (*tmp!='/') tmp--;
|
while (*tmp!='/') tmp--;
|
||||||
size = (strlen(tmp)-1) & 0xFF;
|
size = (strlen(tmp)-1) & 0xFF;
|
||||||
strcpy(&fnames, tmp);
|
strcpy(&fnames, tmp);
|
||||||
fnames = size;
|
fnames = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *olddir = NULL;
|
char *olddir = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user