mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-12 00:59:12 +01:00
Fixed bug in switching playlist during attract mode while on the Main menu.
This commit is contained in:
parent
1d9f942af2
commit
992a855672
@ -704,6 +704,24 @@ bool RetroFE::run( )
|
||||
else // Not in a collection
|
||||
{
|
||||
state = RETROFE_COLLECTION_DOWN_ENTER;
|
||||
|
||||
if ( attractMode_ ) // Check playlist change in attract mode
|
||||
{
|
||||
attractModePlaylistCollectionNumber_ += 1;
|
||||
int attractModePlaylistCollectionNumber = 0;
|
||||
config_.getProperty( "attractModePlaylistCollectionNumber", attractModePlaylistCollectionNumber );
|
||||
// Check if playlist should be changed
|
||||
if ( attractModePlaylistCollectionNumber_ > 0 && attractModePlaylistCollectionNumber_ >= attractModePlaylistCollectionNumber )
|
||||
{
|
||||
attractModePlaylistCollectionNumber_ = 0;
|
||||
currentPage_->nextPlaylist( );
|
||||
std::string attractModeSkipPlaylist = "";
|
||||
config_.getProperty( "attractModeSkipPlaylist", attractModeSkipPlaylist );
|
||||
if (currentPage_->getPlaylistName( ) == attractModeSkipPlaylist)
|
||||
currentPage_->nextPlaylist( );
|
||||
state = RETROFE_PLAYLIST_REQUEST;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
std::string retrofe_version_major = "0";
|
||||
std::string retrofe_version_minor = "9";
|
||||
std::string retrofe_version_build = "37";
|
||||
std::string retrofe_version_build = "38";
|
||||
|
||||
|
||||
std::string Version::getString( )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user