From 834038bf51b2d9af84a5c03a3125a41c478ad426 Mon Sep 17 00:00:00 2001 From: Pieter Hulshoff Date: Wed, 11 Mar 2020 15:43:59 +0100 Subject: [PATCH] Fixed sorting for .sub files based on code by procyon. --- RetroFE/Source/RetroFE.cpp | 5 +++-- RetroFE/Source/Version.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/RetroFE/Source/RetroFE.cpp b/RetroFE/Source/RetroFE.cpp index 7e06974..65ecc03 100644 --- a/RetroFE/Source/RetroFE.cpp +++ b/RetroFE/Source/RetroFE.cpp @@ -1609,11 +1609,12 @@ CollectionInfo *RetroFE::getCollection(std::string collectionName) } closedir( dp ); - collection->sortItems( ); - bool menuSort = true; config_.getProperty( "collections." + collectionName + ".list.menuSort", menuSort ); + if (menuSort) + collection->sortItems( ); + MenuParser mp; mp.buildMenuItems( collection, menuSort); diff --git a/RetroFE/Source/Version.cpp b/RetroFE/Source/Version.cpp index e78be9d..6ce8142 100644 --- a/RetroFE/Source/Version.cpp +++ b/RetroFE/Source/Version.cpp @@ -21,7 +21,7 @@ std::string retrofe_version_major = "0"; std::string retrofe_version_minor = "9"; -std::string retrofe_version_build = "22"; +std::string retrofe_version_build = "23"; std::string Version::getString( )