From 8a7035020a6d04e17cb97af9a78b560046579184 Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Fri, 26 Jul 2024 21:32:32 +0300 Subject: [PATCH] Don't check subdirectories of valid content subdirectories (#8085) --- CHANGELOG.md | 1 + apps/launcher/datafilespage.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16174087a9..79f7695667 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -187,6 +187,7 @@ Bug #8048: Actors can generate negative collision extents and have no collision Bug #8063: menu_background.bik video with audio freezes the game forever Bug #8064: Lua move360 script doesn't respect the enableZoom/disableZoom Camera interface setting + Bug #8085: Don't search in scripts or shaders directories for "Select directories you wish to add" menu in launcher Feature #1415: Infinite fall failsafe Feature #2566: Handle NAM9 records for manual cell references Feature #3537: Shader-based water ripples diff --git a/apps/launcher/datafilespage.cpp b/apps/launcher/datafilespage.cpp index 797aa530b0..35e743e13f 100644 --- a/apps/launcher/datafilespage.cpp +++ b/apps/launcher/datafilespage.cpp @@ -75,7 +75,10 @@ namespace QDir currentDir(path); if (!currentDir.entryInfoList(fileFilter, QDir::Files).empty() || !currentDir.entryInfoList(dirFilter, QDir::Dirs | QDir::NoDotAndDotDot).empty()) + { dirs.push_back(currentDir.canonicalPath()); + return; + } for (const auto& subdir : currentDir.entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot)) contentSubdirs(subdir.canonicalFilePath(), dirs);