#include "global.h" /* ----------------------------------------------------------------------------- Class: RageFile Desc: See header. Copyright (c) 2001-2003 by the person(s) listed below. All rights reserved. Chris Danford ----------------------------------------------------------------------------- */ #include "RageFile.h" #include "RageUtil.h" void FixSlashesInPlace( CString &sPath ) { sPath.Replace( "/", SLASH ); sPath.Replace( "\\", SLASH ); } CString FixSlashes( CString sPath ) { sPath.Replace( "/", SLASH ); sPath.Replace( "\\", SLASH ); return sPath; } void CollapsePath( CString &sPath ) { CStringArray as; split( sPath, SLASH, as ); for( unsigned i=0; i