mirror of https://github.com/stella-emu/stella.git
fixed Launcher filtering of ZIPs not containing any valid ROMs
This commit is contained in:
parent
21127e95a8
commit
49694c1f18
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue