Fix directory search for cheat database.

This commit is contained in:
Brandon Wright 2018-05-01 18:00:39 -05:00
parent db315b36fc
commit a8085dac41
1 changed files with 4 additions and 2 deletions

View File

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