[loading window] Note to self #2: Refresh the file list before commiting.

This commit is contained in:
Henrik Andersson
2011-06-04 23:37:36 +02:00
parent a233c21188
commit 6c7ebfafe8
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ void ScreenInstallOverlay::Update( float fDeltaTime )
}
if( playAfterLaunchInfo.bAnySongChanged )
SONGMAN->Reload( false, NULL );
SONGMAN->Reload( false );
if( !playAfterLaunchInfo.sSongDir.empty() )
{
+4 -4
View File
@@ -98,7 +98,7 @@ void SongManager::InitAll()
}
static LocalizedString RELOADING ( "SongManager", "Reloading..." );
void SongManager::Reload( bool bAllowFastLoad, LoadingWindow *ld )
void SongManager::Reload( bool bAllowFastLoad )
{
FILEMAN->FlushDirCache( SpecialFiles::SONGS_DIR );
FILEMAN->FlushDirCache( ADDITIONAL_SONGS_DIR );
@@ -106,8 +106,8 @@ void SongManager::Reload( bool bAllowFastLoad, LoadingWindow *ld )
FILEMAN->FlushDirCache( ADDITIONAL_COURSES_DIR );
FILEMAN->FlushDirCache( EDIT_SUBDIR );
if( ld )
ld->SetText( RELOADING );
if( pLoadingWindow )
pLoadingWindow->SetText( RELOADING );
// save scores before unloading songs, of the scores will be lost
PROFILEMAN->SaveMachineProfile();
@@ -119,7 +119,7 @@ void SongManager::Reload( bool bAllowFastLoad, LoadingWindow *ld )
if( !bAllowFastLoad )
PREFSMAN->m_bFastLoad.Set( false );
InitAll( ld );
InitAll();
// reload scores and unlocks afterward
PROFILEMAN->LoadMachineProfile();
+1 -1
View File
@@ -1079,7 +1079,7 @@ int main(int argc, char* argv[])
// depends on SONGINDEX:
SONGMAN = new SongManager;
SONGMAN->InitAll( pLoadingWindow ); // this takes a long time
SONGMAN->InitAll(); // this takes a long time
CRYPTMAN = new CryptManager; // need to do this before ProfileMan
if( PREFSMAN->m_bSignProfileData )
CRYPTMAN->GenerateGlobalKeys();