add SongManager::SetPreferences

This commit is contained in:
Glenn Maynard
2004-06-05 08:08:42 +00:00
parent 10ef60e6ce
commit 1eab5c9f1d
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -688,6 +688,16 @@ void SongManager::RegenRandomTrailEntries()
}
}
void SongManager::SetPreferences()
{
for( unsigned int i=0; i<m_pSongs.size(); i++ )
{
/* PREFSMAN->m_bAutogenSteps may have changed. */
m_pSongs[i]->RemoveAutoGenNotes();
m_pSongs[i]->AddAutoGenNotes();
}
}
void SongManager::GetAllCourses( vector<Course*> &AddTo, bool bIncludeAutogen )
{
for( unsigned i=0; i<m_pCourses.size(); i++ )
+1
View File
@@ -36,6 +36,7 @@ public:
void FreeSongs();
void Cleanup();
void RegenRandomTrailEntries();
void SetPreferences();
void LoadAllFromProfiles(); // song, edits
void FreeAllLoadedFromProfiles();