mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-18 04:45: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"
|
LOG(LogInfo) << "Removed " << systemProcessedCount << " file"
|
||||||
<< (systemProcessedCount == 1 ? " " : "s ") << "for system \"" << currentSystem
|
<< (systemProcessedCount == 1 ? " " : "s ") << "from system \""
|
||||||
<< "\"";
|
<< currentSystem << "\"";
|
||||||
|
|
||||||
SDL_Delay(500);
|
SDL_Delay(500);
|
||||||
}
|
}
|
||||||
|
@ -739,10 +739,13 @@ void GuiOrphanedDataCleanup::cleanupCollections()
|
||||||
std::string expandedKey {
|
std::string expandedKey {
|
||||||
Utils::String::replace(gameKey, "%ROMPATH%", FileData::getROMDirectory())};
|
Utils::String::replace(gameKey, "%ROMPATH%", FileData::getROMDirectory())};
|
||||||
expandedKey = Utils::String::replace(expandedKey, "//", "/");
|
expandedKey = Utils::String::replace(expandedKey, "//", "/");
|
||||||
if (Utils::FileSystem::exists(expandedKey))
|
if (Utils::FileSystem::exists(expandedKey)) {
|
||||||
validEntries.emplace_back(gameKey);
|
validEntries.emplace_back(gameKey);
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
|
LOG(LogInfo) << "Found orphaned collection entry \"" << gameKey << "\"";
|
||||||
++removeCount;
|
++removeCount;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configFileSource.is_open())
|
if (configFileSource.is_open())
|
||||||
|
|
Loading…
Reference in a new issue