From 15dfc8db0b0720e0e325c37dd1a030d431c22654 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 3 Aug 2024 19:53:46 -0300 Subject: [PATCH] Canonicalize getFullCommonPath paths. Fixes getRealDirectory test. --- src/modules/filesystem/physfs/Filesystem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/filesystem/physfs/Filesystem.cpp b/src/modules/filesystem/physfs/Filesystem.cpp index 53e8872f9..76e3f91b3 100644 --- a/src/modules/filesystem/physfs/Filesystem.cpp +++ b/src/modules/filesystem/physfs/Filesystem.cpp @@ -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]; }