Yet more theme cleanup. This should be the job of the artists!

This commit is contained in:
Chris Danford
2002-09-24 03:12:04 +00:00
parent 23df7ec564
commit 05cb828e81
3 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -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;