Made INES PAL test check only the filename. Error was listed by Andypro on TASVideos forums, page 5. Not in a position to check against a Unix file path.
This commit is contained in:
parent
6ad9147ac8
commit
a1e4ffe59a
|
@ -888,6 +888,14 @@ int iNESLoad(const char *name, FCEUFILE *fp, int OverwriteVidMode)
|
|||
FCEU_LoadGameSave(&iNESCart);
|
||||
|
||||
strcpy(LoadedRomFName,name); //bbit edited: line added
|
||||
|
||||
// Extract Filename only. Should account for Windows/Unix this way.
|
||||
if (strrchr(name, '/')) {
|
||||
name = strrchr(name, '/') + 1;
|
||||
} else if(strrchr(name, '\\')) {
|
||||
name = strrchr(name, '\\') + 1;
|
||||
}
|
||||
|
||||
GameInterface=iNESGI;
|
||||
FCEU_printf("\n");
|
||||
|
||||
|
|
Loading…
Reference in New Issue