From 44fbfbb93ba7035e09a64c78719cfb7294741d1e Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 27 Jul 2023 15:22:15 +0200 Subject: [PATCH] All removed custom collection entries are now logged by GuiOrphanedDataCleanup --- es-app/src/guis/GuiOrphanedDataCleanup.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/es-app/src/guis/GuiOrphanedDataCleanup.cpp b/es-app/src/guis/GuiOrphanedDataCleanup.cpp index 2bf27d7eb..4919b5ab2 100644 --- a/es-app/src/guis/GuiOrphanedDataCleanup.cpp +++ b/es-app/src/guis/GuiOrphanedDataCleanup.cpp @@ -383,8 +383,8 @@ void GuiOrphanedDataCleanup::cleanupMediaFiles() } LOG(LogInfo) << "Removed " << systemProcessedCount << " file" - << (systemProcessedCount == 1 ? " " : "s ") << "for system \"" << currentSystem - << "\""; + << (systemProcessedCount == 1 ? " " : "s ") << "from system \"" + << currentSystem << "\""; SDL_Delay(500); } @@ -739,10 +739,13 @@ void GuiOrphanedDataCleanup::cleanupCollections() std::string expandedKey { Utils::String::replace(gameKey, "%ROMPATH%", FileData::getROMDirectory())}; expandedKey = Utils::String::replace(expandedKey, "//", "/"); - if (Utils::FileSystem::exists(expandedKey)) + if (Utils::FileSystem::exists(expandedKey)) { validEntries.emplace_back(gameKey); - else + } + else { + LOG(LogInfo) << "Found orphaned collection entry \"" << gameKey << "\""; ++removeCount; + } } if (configFileSource.is_open())