Simplified the detection of flatten.txt files in GuiOrphanedDataCleanup

This commit is contained in:
Leon Styhre 2023-11-05 11:47:22 +01:00
parent b3a05d0403
commit 419ceb8fe4

View file

@ -300,7 +300,7 @@ void GuiOrphanedDataCleanup::cleanupMediaFiles()
mCurrentSystem = currentSystem; mCurrentSystem = currentSystem;
} }
if (Utils::FileSystem::exists(system->getSystemEnvData()->mStartPath + "/flatten.txt")) { if (system->getFlattenFolders()) {
LOG(LogError) << "A flatten.txt file was found, skipping system \"" << currentSystem LOG(LogError) << "A flatten.txt file was found, skipping system \"" << currentSystem
<< "\""; << "\"";
{ {
@ -478,7 +478,7 @@ void GuiOrphanedDataCleanup::cleanupGamelists()
mCurrentSystem = currentSystem; mCurrentSystem = currentSystem;
} }
if (Utils::FileSystem::exists(system->getSystemEnvData()->mStartPath + "/flatten.txt")) { if (system->getFlattenFolders()) {
LOG(LogError) << "A flatten.txt file was found, skipping system \"" << currentSystem LOG(LogError) << "A flatten.txt file was found, skipping system \"" << currentSystem
<< "\""; << "\"";
{ {