[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
+2
View File
@@ -1657,6 +1657,8 @@ Error adding file '%s'.=Error adding file '%s'.
Loading courses...=Loading courses...
Loading songs...=Loading songs...
Reloading...=Reloading...
Unloading songs...=Unloading songs...
Unloading courses...=Unloading courses...
The folder "%s" appears to be a song folder. All song folders must reside in a group folder. For example, "Songs/Originals/My Song".=The folder "%s" appears to be a song folder. All song folders must reside in a group folder. For example, "Songs/Originals/My Song" will contain the music file (MP3, OGG...), the steps file (.sm, .dwi, .ksf...) and other related files.
[SongUtil]
+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;