mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
All removed custom collection entries are now logged by GuiOrphanedDataCleanup
This commit is contained in:
parent
ada0fa0df4
commit
44fbfbb93b
|
@ -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,11 +739,14 @@ 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())
|
||||
configFileSource.close();
|
||||
|
|
Loading…
Reference in a new issue