From 7b6880ff1f4bdade09aaf9c6aa114c36a9626749 Mon Sep 17 00:00:00 2001 From: Renaud Lepage Date: Wed, 16 Nov 2005 04:30:42 +0000 Subject: [PATCH] Path adaptation to Xbox --- stepmania/src/RageFileDriverDirectHelpers.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stepmania/src/RageFileDriverDirectHelpers.cpp b/stepmania/src/RageFileDriverDirectHelpers.cpp index 141f072dd7..bc60c188e3 100644 --- a/stepmania/src/RageFileDriverDirectHelpers.cpp +++ b/stepmania/src/RageFileDriverDirectHelpers.cpp @@ -37,9 +37,7 @@ int DoStat( const CString &sPath, struct stat *st ) int DoRename( const CString &sOldPath, const CString &sNewPath ) { - CString TempPath = sPath; - TempPath.Replace( "/", "\\" ); - return rename( sPath ); + return rename( DoPathReplace(sOldPath), DoPathReplace(sNewPath) ); } int DoRemove( const CString &sPath )