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,10 +501,10 @@ void obtaindir()
|
||||
}
|
||||
}
|
||||
|
||||
extern char fnamest, fnames;
|
||||
|
||||
void GetFilename()
|
||||
{
|
||||
extern char fnamest, fnames;
|
||||
extern int statefileloc;
|
||||
char *tmp = &fnamest;
|
||||
char size;
|
||||
|
||||
@@ -514,6 +514,7 @@ void GetFilename()
|
||||
size = (strlen(tmp)-1) & 0xFF;
|
||||
strcpy(&fnamest, tmp);
|
||||
fnamest = size;
|
||||
statefileloc-=(tmp-&fnamest);
|
||||
|
||||
tmp = &fnames;
|
||||
*tmp = '/';
|
||||
|
||||
Reference in New Issue
Block a user