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:
ugetab 2010-04-23 21:01:11 +00:00
parent 6ad9147ac8
commit a1e4ffe59a
1 changed files with 8 additions and 0 deletions

View File

@ -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");