SDL2 fix rom re-scan when nno roms have been found on previous scans

This commit is contained in:
tmaul 2021-04-03 23:29:11 +01:00
parent 00e7a48418
commit e885c8bdda

View File

@ -722,6 +722,7 @@ void reset_filters()
bShowAvailableOnly = true;
nSystemToCheckMask = HARDWARE_PUBLIC_MASK;
nFilterSelect = HARDWARE_PUBLIC_MASK;
startGame = -gamesperscreen_halfway;
}
@ -736,7 +737,7 @@ void RefreshRomList(bool force_rescan)
tempgame = nBurnDrvActive;
nBurnDrvActive = 0;
filterGamesCount = 0;
if (!CheckGameAvb() && !force_rescan)
{
return;
@ -791,6 +792,7 @@ void RefreshRomList(bool force_rescan)
WriteGameAvb();
nBurnDrvActive = tempgame;
reset_filters(); // reset filterss after a full rescan
DoFilterGames();
}
void gui_exit()