Skip to content

Commit

Permalink
Canonicalize getFullCommonPath paths.
Browse files Browse the repository at this point in the history
Fixes getRealDirectory test.
  • Loading branch information
slime73 committed Aug 3, 2024
1 parent e94b8c3 commit 15dfc8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/filesystem/physfs/Filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,9 @@ std::string Filesystem::getFullCommonPath(CommonPath path)
else
suffix = std::string(LOVE_PATH_SEPARATOR LOVE_APPDATA_FOLDER LOVE_PATH_SEPARATOR) + saveIdentity;

// TODO: do we still need the normalize?
fullPaths[path] = normalize(rootpath + suffix);
fullPaths[path] = canonicalizeRealPath(fullPaths[path].c_str());

return fullPaths[path];
}
Expand Down

0 comments on commit 15dfc8d

Please sign in to comment.