From 419ceb8fe40edf548ab5c8915e783d59e6eb3655 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 5 Nov 2023 11:47:22 +0100 Subject: [PATCH] Simplified the detection of flatten.txt files in GuiOrphanedDataCleanup --- es-app/src/guis/GuiOrphanedDataCleanup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-app/src/guis/GuiOrphanedDataCleanup.cpp b/es-app/src/guis/GuiOrphanedDataCleanup.cpp index 352145fa3..0bde9620a 100644 --- a/es-app/src/guis/GuiOrphanedDataCleanup.cpp +++ b/es-app/src/guis/GuiOrphanedDataCleanup.cpp @@ -300,7 +300,7 @@ void GuiOrphanedDataCleanup::cleanupMediaFiles() 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 << "\""; { @@ -478,7 +478,7 @@ void GuiOrphanedDataCleanup::cleanupGamelists() 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 << "\""; {