[loading window] Note to self #2: Refresh the file list before commiting.
This commit is contained in:
@@ -360,7 +360,7 @@ void ScreenInstallOverlay::Update( float fDeltaTime )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( playAfterLaunchInfo.bAnySongChanged )
|
if( playAfterLaunchInfo.bAnySongChanged )
|
||||||
SONGMAN->Reload( false, NULL );
|
SONGMAN->Reload( false );
|
||||||
|
|
||||||
if( !playAfterLaunchInfo.sSongDir.empty() )
|
if( !playAfterLaunchInfo.sSongDir.empty() )
|
||||||
{
|
{
|
||||||
|
|||||||
+4
-4
@@ -98,7 +98,7 @@ void SongManager::InitAll()
|
|||||||
}
|
}
|
||||||
|
|
||||||
static LocalizedString RELOADING ( "SongManager", "Reloading..." );
|
static LocalizedString RELOADING ( "SongManager", "Reloading..." );
|
||||||
void SongManager::Reload( bool bAllowFastLoad, LoadingWindow *ld )
|
void SongManager::Reload( bool bAllowFastLoad )
|
||||||
{
|
{
|
||||||
FILEMAN->FlushDirCache( SpecialFiles::SONGS_DIR );
|
FILEMAN->FlushDirCache( SpecialFiles::SONGS_DIR );
|
||||||
FILEMAN->FlushDirCache( ADDITIONAL_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( ADDITIONAL_COURSES_DIR );
|
||||||
FILEMAN->FlushDirCache( EDIT_SUBDIR );
|
FILEMAN->FlushDirCache( EDIT_SUBDIR );
|
||||||
|
|
||||||
if( ld )
|
if( pLoadingWindow )
|
||||||
ld->SetText( RELOADING );
|
pLoadingWindow->SetText( RELOADING );
|
||||||
|
|
||||||
// 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();
|
||||||
@@ -119,7 +119,7 @@ void SongManager::Reload( bool bAllowFastLoad, LoadingWindow *ld )
|
|||||||
if( !bAllowFastLoad )
|
if( !bAllowFastLoad )
|
||||||
PREFSMAN->m_bFastLoad.Set( false );
|
PREFSMAN->m_bFastLoad.Set( false );
|
||||||
|
|
||||||
InitAll( ld );
|
InitAll();
|
||||||
|
|
||||||
// reload scores and unlocks afterward
|
// reload scores and unlocks afterward
|
||||||
PROFILEMAN->LoadMachineProfile();
|
PROFILEMAN->LoadMachineProfile();
|
||||||
|
|||||||
+1
-1
@@ -1079,7 +1079,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
// depends on SONGINDEX:
|
// depends on SONGINDEX:
|
||||||
SONGMAN = new SongManager;
|
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
|
CRYPTMAN = new CryptManager; // need to do this before ProfileMan
|
||||||
if( PREFSMAN->m_bSignProfileData )
|
if( PREFSMAN->m_bSignProfileData )
|
||||||
CRYPTMAN->GenerateGlobalKeys();
|
CRYPTMAN->GenerateGlobalKeys();
|
||||||
|
|||||||
Reference in New Issue
Block a user