[loading window] Unloading should be reported as well.

This commit is contained in:
Henrik Andersson
2011-06-05 15:37:22 +02:00
parent 98204d5b56
commit 881a6534e8
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -98,6 +98,8 @@ void SongManager::InitAll()
}
static LocalizedString RELOADING ( "SongManager", "Reloading..." );
static LocalizedString UNLOADING_SONGS ( "SongManager", "Unloading songs..." );
static LocalizedString UNLOADING_COURSES ( "SongManager", "Unloading courses..." );
void SongManager::Reload( bool bAllowFastLoad )
{
FILEMAN->FlushDirCache( SpecialFiles::SONGS_DIR );
@@ -112,7 +114,13 @@ void SongManager::Reload( bool bAllowFastLoad )
// save scores before unloading songs, of the scores will be lost
PROFILEMAN->SaveMachineProfile();
if( pLoadingWindow )
pLoadingWindow->SetText( UNLOADING_COURSES );
FreeCourses();
if( pLoadingWindow )
pLoadingWindow->SetText( UNLOADING_SONGS );
FreeSongs();
const bool OldVal = PREFSMAN->m_bFastLoad;