Skip to content

Commit

Permalink
Fix HarbourMasters#3417 Symlinks to Directories in Mods Dir Aren't Tr…
Browse files Browse the repository at this point in the history
…aversed
  • Loading branch information
rehashedsalt committed Nov 19, 2023
1 parent 0ddb071 commit 353270c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soh/soh/OTRGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 353270c

Please sign in to comment.