From 0ff0f8a77636c1fbff97fdb52d5d474a3300c818 Mon Sep 17 00:00:00 2001 From: Don Honerbrink Date: Thu, 12 Mar 2015 11:55:33 +0000 Subject: [PATCH] CollectionInfoBuilder.cpp edited online with Bitbucket --- RetroFE/Source/Collection/CollectionInfoBuilder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RetroFE/Source/Collection/CollectionInfoBuilder.cpp b/RetroFE/Source/Collection/CollectionInfoBuilder.cpp index 134bb5e..1905644 100644 --- a/RetroFE/Source/Collection/CollectionInfoBuilder.cpp +++ b/RetroFE/Source/Collection/CollectionInfoBuilder.cpp @@ -114,7 +114,7 @@ bool CollectionInfoBuilder::CreateCollectionDirectory(std::string name) settingsFile << "# Uncomment and edit the following line to use a different ROM path." << std::endl; settingsFile << "#list.path = %BASE_ITEM_PATH%/%ITEM_COLLECTION_NAME%/roms" << std::endl; - settingsFile << "list.includeMissingItems = false" << std::endl; + settingsFile << "list.includeMissingItems = false" << std::endl; settingsFile << "list.extensions = zip" << std::endl; settingsFile << "launcher = mame" << std::endl; settingsFile << "metadata.type = MAME" << std::endl; @@ -308,8 +308,6 @@ bool CollectionInfoBuilder::ImportDirectory(CollectionInfo *info) closedir(dp); - info->SortItems(); - while(includeFilter.size() > 0) { std::map::iterator it = includeFilter.begin(); @@ -328,6 +326,8 @@ bool CollectionInfoBuilder::ImportDirectory(CollectionInfo *info) } MetaDB.InjectMetadata(info); + + info->SortItems(); return true; }