continue phasing out BASE_PATH and SLASH

This commit is contained in:
Glenn Maynard
2003-12-10 09:44:16 +00:00
parent cd7ab704cb
commit e9ae2c0803
13 changed files with 40 additions and 44 deletions
+3 -4
View File
@@ -26,15 +26,14 @@ void FixSlashesInPlace( CString &sPath )
CString FixSlashes( CString sPath )
{
sPath.Replace( "/", SLASH );
sPath.Replace( "\\", SLASH );
FixSlashesInPlace( sPath );
return sPath;
}
void CollapsePath( CString &sPath )
{
CStringArray as;
split( sPath, SLASH, as );
split( sPath, "/", as );
for( unsigned i=0; i<as.size(); i++ )
{
@@ -45,7 +44,7 @@ void CollapsePath( CString &sPath )
i -= 2;
}
}
sPath = join( SLASH, as );
sPath = join( "/", as );
}
RageFile::RageFile()