Browse Source

Canonicalize getFullCommonPath paths.

Fixes getRealDirectory test.
Sasha Szpakowski 1 year ago
parent
commit
15dfc8db0b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/modules/filesystem/physfs/Filesystem.cpp

+ 2 - 0
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];
 	}