mirror of https://github.com/snes9xgit/snes9x.git
Fix directory search for cheat database.
This commit is contained in:
parent
db315b36fc
commit
a8085dac41
|
@ -301,7 +301,8 @@ Snes9xCheats::search_database (void)
|
|||
int result;
|
||||
int reason = 0;
|
||||
|
||||
filename = S9xGetFilename ("cheats.bml", CHEAT_DIR);
|
||||
filename = S9xGetDirectory (CHEAT_DIR);
|
||||
filename += "/cheats.bml";
|
||||
if (!(result = S9xImportCheatsFromDatabase (filename.c_str ())))
|
||||
{
|
||||
refresh_tree_view ();
|
||||
|
@ -334,7 +335,8 @@ Snes9xCheats::search_database (void)
|
|||
if (result < reason)
|
||||
reason = result;
|
||||
|
||||
filename = S9xGetFilename ("cheats.bml", ROM_DIR);
|
||||
filename = S9xGetDirectory (ROM_DIR);
|
||||
filename += "/cheats.bml";
|
||||
if (!(result = S9xImportCheatsFromDatabase (filename.c_str ())))
|
||||
{
|
||||
refresh_tree_view ();
|
||||
|
|
Loading…
Reference in New Issue