Path adaptation to Xbox

This commit is contained in:
Renaud Lepage
2005-11-16 04:30:42 +00:00
parent cb34951e33
commit 7b6880ff1f
@@ -37,9 +37,7 @@ int DoStat( const CString &sPath, struct stat *st )
int DoRename( const CString &sOldPath, const CString &sNewPath ) int DoRename( const CString &sOldPath, const CString &sNewPath )
{ {
CString TempPath = sPath; return rename( DoPathReplace(sOldPath), DoPathReplace(sNewPath) );
TempPath.Replace( "/", "\\" );
return rename( sPath );
} }
int DoRemove( const CString &sPath ) int DoRemove( const CString &sPath )