[loading window] Unloading should be reported as well.
This commit is contained in:
@@ -1657,6 +1657,8 @@ Error adding file '%s'.=Error adding file '%s'.
|
|||||||
Loading courses...=Loading courses...
|
Loading courses...=Loading courses...
|
||||||
Loading songs...=Loading songs...
|
Loading songs...=Loading songs...
|
||||||
Reloading...=Reloading...
|
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.
|
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]
|
[SongUtil]
|
||||||
|
|||||||
@@ -98,6 +98,8 @@ void SongManager::InitAll()
|
|||||||
}
|
}
|
||||||
|
|
||||||
static LocalizedString RELOADING ( "SongManager", "Reloading..." );
|
static LocalizedString RELOADING ( "SongManager", "Reloading..." );
|
||||||
|
static LocalizedString UNLOADING_SONGS ( "SongManager", "Unloading songs..." );
|
||||||
|
static LocalizedString UNLOADING_COURSES ( "SongManager", "Unloading courses..." );
|
||||||
void SongManager::Reload( bool bAllowFastLoad )
|
void SongManager::Reload( bool bAllowFastLoad )
|
||||||
{
|
{
|
||||||
FILEMAN->FlushDirCache( SpecialFiles::SONGS_DIR );
|
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
|
// save scores before unloading songs, of the scores will be lost
|
||||||
PROFILEMAN->SaveMachineProfile();
|
PROFILEMAN->SaveMachineProfile();
|
||||||
|
|
||||||
|
if( pLoadingWindow )
|
||||||
|
pLoadingWindow->SetText( UNLOADING_COURSES );
|
||||||
|
|
||||||
FreeCourses();
|
FreeCourses();
|
||||||
|
|
||||||
|
if( pLoadingWindow )
|
||||||
|
pLoadingWindow->SetText( UNLOADING_SONGS );
|
||||||
FreeSongs();
|
FreeSongs();
|
||||||
|
|
||||||
const bool OldVal = PREFSMAN->m_bFastLoad;
|
const bool OldVal = PREFSMAN->m_bFastLoad;
|
||||||
|
|||||||
Reference in New Issue
Block a user