make calls to THEME->GetPathTo() more concise

This commit is contained in:
Chris Danford
2003-04-12 17:39:27 +00:00
parent 625b1beb04
commit 448bdc7b6e
96 changed files with 508 additions and 513 deletions
+2 -2
View File
@@ -144,7 +144,7 @@ void BGAnimationLayer::LoadFromVisualization( CString sMoviePath )
void BGAnimationLayer::LoadFromAniLayerFile( CString sPath )
{
Song* pSong = GAMESTATE->m_pCurSong;
CString sSongBGPath = pSong && pSong->HasBackground() ? pSong->GetBackgroundPath() : THEME->GetPathTo("Graphics","Common fallback background");
CString sSongBGPath = pSong && pSong->HasBackground() ? pSong->GetBackgroundPath() : THEME->GetPathToG("Common fallback background");
Init();
CString lcPath = sPath;
@@ -464,7 +464,7 @@ void BGAnimationLayer::LoadFromIni( CString sAniDir, CString sLayer )
if(pSong && pSong->HasBackground())
sPath = pSong->GetBackgroundPath();
else
sPath = THEME->GetPathTo("Graphics","Common fallback background");
sPath = THEME->GetPathToG("Common fallback background");
} else {
if( sPath == "" )
RageException::Throw( "In the ini file for BGAnimation '%s', '%s' is missing a the line 'File='.", sAniDir.GetString(), sLayer.GetString() );