Any type starting with playlist is now a reserved word, and uses the current playlist name. This will allow multiple playlist graphics to be used, like playlist1, playlist2, etc.

This commit is contained in:
Pieter Hulshoff 2019-08-17 20:53:17 +02:00
parent 21bf07f502
commit 28a77d8c2f
4 changed files with 4 additions and 4 deletions

View File

@ -284,7 +284,7 @@ void ReloadableMedia::reloadTexture()
basename = selectedItem->score;
defined = true;
}
else if(typeLC == "playlist")
else if(typeLC.rfind( "playlist", 0 ) == 0)
{
basename = page.getPlaylistName();
defined = true;

View File

@ -289,7 +289,7 @@ void ReloadableScrollingText::reloadTexture( )
else // item is a collection
(void)config_.getProperty("collections." + selectedItem->name + ".genre", text );
}
else if (type_ == "playlist")
else if (type_.rfind( "playlist", 0 ) == 0)
{
text = playlistName;
}

View File

@ -175,7 +175,7 @@ void ReloadableText::ReloadTexture()
{
text = selectedItem->genre;
}
else if (type_ == "playlist")
else if (type_.rfind( "playlist", 0 ) == 0)
{
text = playlistName;
}

View File

@ -21,7 +21,7 @@
std::string retrofe_version_major = "0";
std::string retrofe_version_minor = "9";
std::string retrofe_version_build = "1";
std::string retrofe_version_build = "2";
std::string Version::getString( )