GetPathTo -> GetPath

This commit is contained in:
Chris Danford
2005-02-06 03:32:53 +00:00
parent 7e68ac03b4
commit 4223e09cc8
91 changed files with 422 additions and 447 deletions
+25 -13
View File
@@ -108,7 +108,7 @@ MusicBannerWheel::MusicBannerWheel()
LoadSongData();
#ifdef DEBUG
m_debugtext.LoadFromFont( THEME->GetPathToF("small titles") );
m_debugtext.LoadFromFont( THEME->GetPathF("small","titles") );
m_debugtext.SetXY( 0, -120 );
this->AddChild(&m_debugtext);
#endif
@@ -146,9 +146,12 @@ void MusicBannerWheel::InsertNewBanner(int direction)
else
pSong = arraySongs[(arraySongs.size()-1) + (currentPos-2)]; // wrap around. (it does honestly!)
if( pSong == NULL ) sGraphicPath = (THEME->GetPathToG("Common fallback banner"));
else if (pSong->HasBanner()) sGraphicPath = (pSong->GetBannerPath());
else sGraphicPath = (THEME->GetPathToG("Common fallback banner"));
if( pSong == NULL )
sGraphicPath = THEME->GetPathG("Common","fallback banner");
else if (pSong->HasBanner())
sGraphicPath = pSong->GetBannerPath();
else
sGraphicPath = THEME->GetPathG("Common","fallback banner");
elementtoreplace = scrlistPos - 2;
if(elementtoreplace < 0)
@@ -172,9 +175,12 @@ void MusicBannerWheel::InsertNewBanner(int direction)
else
pSong = arraySongs[0+ (((currentPos+2) - (arraySongs.size()-1)) - 1)]; // wrap around. (it does honestly!)
if( pSong == NULL ) sGraphicPath = (THEME->GetPathToG("Common fallback banner"));
else if (pSong->HasBanner()) sGraphicPath = (pSong->GetBannerPath());
else sGraphicPath = (THEME->GetPathToG("Common fallback banner"));
if( pSong == NULL )
sGraphicPath = THEME->GetPathG("Common","fallback banner");
else if (pSong->HasBanner())
sGraphicPath = pSong->GetBannerPath();
else
sGraphicPath = THEME->GetPathG("Common","fallback banner");
elementtoreplace = scrlistPos + 2;
if(elementtoreplace > MAXSONGSINBUFFER-1)
@@ -223,9 +229,12 @@ void MusicBannerWheel::LoadSongData()
{
pSong = arraySongs[c];
if( pSong == NULL ) asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner"));
else if (pSong->HasBanner()) asGraphicPaths.push_back(pSong->GetBannerPath());
else asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner"));
if( pSong == NULL )
asGraphicPaths.push_back(THEME->GetPathG("Common","fallback banner"));
else if (pSong->HasBanner())
asGraphicPaths.push_back(pSong->GetBannerPath());
else
asGraphicPaths.push_back(THEME->GetPathG("Common","fallback banner"));
}
}
}
@@ -274,9 +283,12 @@ void MusicBannerWheel::LoadSongData()
pSong = arraySongs[arraySongs.size()-1];
}
if( pSong == NULL ) asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner"));
else if (pSong->HasBanner()) asGraphicPaths.push_back(pSong->GetBannerPath());
else asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner"));
if( pSong == NULL )
asGraphicPaths.push_back(THEME->GetPathG("Common","fallback banner"));
else if (pSong->HasBanner())
asGraphicPaths.push_back(pSong->GetBannerPath());
else
asGraphicPaths.push_back(THEME->GetPathG("Common","fallback banner"));
}
}
if(SingleLoad != 1)