From d50ad4779d016c3439885d4aa351c6b56dbb36bf Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 24 Nov 2023 08:40:30 -0600 Subject: [PATCH] Fix #3417 Symlinks to Directories in Mods Dir Aren't Traversed (#3418) --- soh/soh/OTRGlobals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index 2eb72591d..bd2e6208a 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -255,7 +255,7 @@ OTRGlobals::OTRGlobals() { std::string patchesPath = LUS::Context::LocateFileAcrossAppDirs("mods", appShortName); if (patchesPath.length() > 0 && std::filesystem::exists(patchesPath)) { if (std::filesystem::is_directory(patchesPath)) { - for (const auto& p : std::filesystem::recursive_directory_iterator(patchesPath)) { + for (const auto& p : std::filesystem::recursive_directory_iterator(patchesPath, std::filesystem::directory_options::follow_directory_symlink)) { if (StringHelper::IEquals(p.path().extension().string(), ".otr")) { OTRFiles.push_back(p.path().generic_string()); }