Yet more theme cleanup. This should be the job of the artists!
This commit is contained in:
@@ -81,11 +81,16 @@ bool Sprite::LoadFromSpriteFile( CString sSpritePath, bool bForceReload, int iMi
|
||||
|
||||
CString sTextureFile;
|
||||
ini.GetValue( "Sprite", "Texture", sTextureFile );
|
||||
if( sTextureFile == "" )
|
||||
if( sTextureFile == "" )
|
||||
throw RageException( "Error reading value 'Texture' from %s.", m_sSpritePath );
|
||||
|
||||
CString sTexturePath = sFontDir + sTextureFile; // save the path of the new texture
|
||||
|
||||
if( !DoesFileExist(sTexturePath) )
|
||||
throw RageException( "The sprite file '%s' points to a texture '%s' which doesn't exist.", m_sSpritePath, sTexturePath );
|
||||
|
||||
|
||||
|
||||
// Load the texture
|
||||
if( !LoadTexture( sTexturePath ) )
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user