Add Song::SongHasNoteType, moved from ScreenSelectGroup.

This commit is contained in:
Glenn Maynard
2002-08-20 06:47:30 +00:00
parent 2d39de68e9
commit 2e78a4d08f
3 changed files with 16 additions and 16 deletions
+11
View File
@@ -1212,6 +1212,17 @@ void Song::GetNotesThatMatch( NotesType nt, CArray<Notes*, Notes*>& arrayAddTo )
arrayAddTo.Add( m_apNotes[i] );
}
bool Song::SongHasNoteType( NotesType nt ) const
{
for( int i=0; i < m_apNotes.GetSize(); i++ ) // foreach Notes
{
if( m_apNotes[i]->m_NotesType == nt )
return true;
}
return false;
}
void Song::SaveToCacheFile()
{
LOG->Trace( "Song::SaveToCacheFile()" );