From 49694c1f1866014584e252693d34a6d4a0cc152e Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Thu, 16 Dec 2021 09:51:11 +0100 Subject: [PATCH] fixed Launcher filtering of ZIPs not containing any valid ROMs --- Changes.txt | 3 +++ src/gui/LauncherDialog.cxx | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes.txt b/Changes.txt index 6a2a0e1e1..aa88d0d7b 100644 --- a/Changes.txt +++ b/Changes.txt @@ -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. diff --git a/src/gui/LauncherDialog.cxx b/src/gui/LauncherDialog.cxx index d5dc16f51..aa192ae3c 100644 --- a/src/gui/LauncherDialog.cxx +++ b/src/gui/LauncherDialog.cxx @@ -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