CString -> RString

This commit is contained in:
Chris Danford
2006-01-22 01:00:06 +00:00
parent 870ed267fc
commit 7f821e8cfc
578 changed files with 3943 additions and 3946 deletions
+5 -5
View File
@@ -10,7 +10,7 @@
#include <set>
static RageSurface *TryOpenFile( CString sPath, bool bHeaderOnly, CString &error, CString format, bool &bKeepTrying )
static RageSurface *TryOpenFile( RString sPath, bool bHeaderOnly, RString &error, RString format, bool &bKeepTrying )
{
RageSurface *ret = NULL;
RageSurfaceUtils::OpenResult result;
@@ -72,7 +72,7 @@ static RageSurface *TryOpenFile( CString sPath, bool bHeaderOnly, CString &error
return NULL;
}
RageSurface *RageSurfaceUtils::LoadFile( const CString &sPath, CString &error, bool bHeaderOnly )
RageSurface *RageSurfaceUtils::LoadFile( const RString &sPath, RString &error, bool bHeaderOnly )
{
{
RageFile TestOpen;
@@ -83,13 +83,13 @@ RageSurface *RageSurfaceUtils::LoadFile( const CString &sPath, CString &error, b
}
}
set<CString> FileTypes;
set<RString> FileTypes;
FileTypes.insert("png");
FileTypes.insert("jpg");
FileTypes.insert("gif");
FileTypes.insert("bmp");
CString format = GetExtension(sPath);
RString format = GetExtension(sPath);
format.MakeLower();
bool bKeepTrying = true;
@@ -103,7 +103,7 @@ RageSurface *RageSurfaceUtils::LoadFile( const CString &sPath, CString &error, b
FileTypes.erase( format );
}
for( set<CString>::iterator it = FileTypes.begin(); bKeepTrying && it != FileTypes.end(); ++it )
for( set<RString>::iterator it = FileTypes.begin(); bKeepTrying && it != FileTypes.end(); ++it )
{
RageSurface *ret = TryOpenFile( sPath, bHeaderOnly, error, *it, bKeepTrying );
if( ret )