Changed SongCriteria.m_sGroupName to a vector m_vsGroupNames, to allow for the potential to select a song from more than one group.

This commit is contained in:
Michael Votaw
2023-11-29 17:38:58 -06:00
committed by teejusb
parent f44357c3f5
commit 343f2de657
7 changed files with 40 additions and 21 deletions
+3 -1
View File
@@ -32,8 +32,10 @@ ThemeMetric<bool> SHOW_SECTIONS_IN_LENGTH_SORT ( "MusicWheel", "ShowSectionsInLe
bool SongCriteria::Matches( const Song *pSong ) const
{
if( !m_sGroupName.empty() && m_sGroupName != pSong->m_sGroupName )
if( !m_vsGroupNames.size() > 0 && std::find(m_vsGroupNames.begin(), m_vsGroupNames.end(), pSong->m_sGroupName) == m_vsGroupNames.end() )
{
return false;
}
if( UNLOCKMAN->SongIsLocked(pSong) & LOCKED_DISABLED )
return false;