add SONGMAN->FindSong

This commit is contained in:
Glenn Maynard
2003-07-09 04:09:35 +00:00
parent a43296fef9
commit 361a2b58a9
5 changed files with 39 additions and 23 deletions
+11
View File
@@ -1067,4 +1067,15 @@ void SongManager::AddScores( NotesType nt, bool bPlayerEnabled[NUM_PLAYERS],
}
}
Song *SongManager::FindSong( CString sGroup, CString sSong )
{
// foreach song
for( unsigned i = 0; i < m_pSongs.size(); i++ )
{
if( m_pSongs[i]->Matches(sGroup, sSong) )
return m_pSongs[i];
}
return NULL;
}