Skip to content

Commit

Permalink
relative path fix part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Oct 8, 2023
1 parent dcf2971 commit 65cac1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ std::filesystem::path GetFileName(auto lpFilename)

auto filePath = std::filesystem::path(lpFilename);
auto absolutePath = std::filesystem::absolute(filePath, ec);
auto relativePath = absolutePath.lexically_relative(gamePath);
auto relativePath = std::filesystem::weakly_canonical(absolutePath, ec).lexically_relative(gamePath);
auto commonPath = gamePath;

if (starts_with(relativePath, ".."))
Expand Down

0 comments on commit 65cac1a

Please sign in to comment.