From 34b3cc616abc8e1eb563b6181484f5e4f2f053f3 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 2 Aug 2003 19:28:31 +0000 Subject: [PATCH] Collapse path when reading redirects (needed for Xbox) --- stepmania/src/RageUtil.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index 704c56bbe2..943669dc71 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -515,7 +515,12 @@ CString DerefRedir(const CString &path) if(sNewFileName == "") return ""; + FixSlashesInPlace( sNewFileName ); + CString path2 = sDir+sNewFileName; + + CollapsePath( path2 ); + ResolvePath( path2 ); return path2; }