Skip to content

Commit

Permalink
Try to load disksys.rom from current rom directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pingflood committed Dec 24, 2019
1 parent eb477e6 commit 62a4387
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,11 @@ std::string FCEU_MakeFName(int type, int id1, const char *cd1)
case FCEUMKF_FDSROM:
if(odirs[FCEUIOD_FDSROM])
sprintf(ret,"%s" PSS "disksys.rom",odirs[FCEUIOD_FDSROM]);
else
sprintf(ret,"%s" PSS "disksys.rom",BaseDirectory.c_str());
else {
sprintf(ret,"%s" PSS "disksys.rom",FileBaseDirectory);
if (stat(ret,&tmpstat) != 0)
sprintf(ret,"%s" PSS "disksys.rom",BaseDirectory.c_str());
}
break;
case FCEUMKF_PALETTE:sprintf(ret,"%s" PSS "%s.pal",BaseDirectory.c_str(),FileBase);break;
case FCEUMKF_MOVIEGLOB:
Expand Down

0 comments on commit 62a4387

Please sign in to comment.