GetPathTo -> GetPath
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user