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 << "\""; {