fixed Launcher filtering of ZIPs not containing any valid ROMs

This commit is contained in:
Thomas Jentzsch 2021-12-16 09:51:11 +01:00
parent 21127e95a8
commit 49694c1f18
2 changed files with 7 additions and 1 deletions

View File

@ -15,9 +15,12 @@
6.6 to 6.?
* Reworked the file launcher:
- Redesigned user interface
- Added tracking of user favorites, recently played and most popular
games.
- Added virtual directories for selecting tracked games.
- Added quick path navigation
- Added navigation history
- Added icons for files and directories.
- Added option to show/hide file extensions.
- Extended context menu and shortcuts.

View File

@ -605,7 +605,10 @@ void LauncherDialog::applyFiltering()
if(!node.isDirectory())
{
// Do we want to show only ROMs or all files?
if(myShowOnlyROMs && !Bankswitch::isValidRomName(node))
string ext;
if(myShowOnlyROMs &&
(!Bankswitch::isValidRomName(node, ext)
|| BSPF::compareIgnoreCase(ext, "zip") == 0)) // exclude ZIPs without any valid ROMs
return false;
// Skip over files that don't match the pattern in the 'pattern' textbox