From 21bf07f50284bf52ad3fb35d6df2af6eafdda20c Mon Sep 17 00:00:00 2001 From: Pieter Hulshoff Date: Thu, 6 Jun 2019 21:01:28 +0200 Subject: [PATCH] Added lastPlayedSkipCollection parameter to allow a collection from not being included in the lastplayed playlist. --- RetroFE/Source/RetroFE.cpp | 9 ++++++--- RetroFE/Source/Version.cpp | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/RetroFE/Source/RetroFE.cpp b/RetroFE/Source/RetroFE.cpp index 61b4bdb..2b7b57c 100644 --- a/RetroFE/Source/RetroFE.cpp +++ b/RetroFE/Source/RetroFE.cpp @@ -691,9 +691,12 @@ void RetroFE::run( ) nextPageItem_ = currentPage_->getSelectedItem( ); launchEnter( ); CollectionInfoBuilder cib(config_, *metadb_); - std::string attractModeSkipPlaylist = ""; - config_.getProperty( "attractModeSkipPlaylist", attractModeSkipPlaylist ); - if (currentPage_->getPlaylistName( ) != attractModeSkipPlaylist) + std::string attractModeSkipPlaylist = ""; + std::string lastPlayedSkipCollection = ""; + config_.getProperty( "attractModeSkipPlaylist", attractModeSkipPlaylist ); + config_.getProperty( "lastPlayedSkipCollection", lastPlayedSkipCollection ); + if (currentPage_->getPlaylistName( ) != attractModeSkipPlaylist && + nextPageItem_->collectionInfo->name != lastPlayedSkipCollection) cib.updateLastPlayedPlaylist( currentPage_->getCollection(), nextPageItem_ ); // Update last played playlist if not currently in the skip playlist (e.g. settings) l.run(nextPageItem_->collectionInfo->name, nextPageItem_); launchExit( ); diff --git a/RetroFE/Source/Version.cpp b/RetroFE/Source/Version.cpp index 65946d1..cf057da 100644 --- a/RetroFE/Source/Version.cpp +++ b/RetroFE/Source/Version.cpp @@ -21,7 +21,7 @@ std::string retrofe_version_major = "0"; std::string retrofe_version_minor = "9"; -std::string retrofe_version_build = "0"; +std::string retrofe_version_build = "1"; std::string Version::getString( )