seperate fast load for regular and additional songs

This commit is contained in:
Chris Danford
2006-06-15 10:54:55 +00:00
parent c29c725f4b
commit 270b8d94c5
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -193,6 +193,7 @@ PrefsManager::PrefsManager() :
m_BannerCache ( "BannerCache", BNCACHE_LOW_RES_PRELOAD ),
m_bPalettedBannerCache ( "PalettedBannerCache", false ),
m_bFastLoad ( "FastLoad", false ),
m_bFastLoadAdditionalSongs ( "FastLoadAdditionalSongs", false ),
m_bOnlyDedicatedMenuButtons ( "OnlyDedicatedMenuButtons", false ),
m_bMenuTimer ( "MenuTimer", true ),
+1
View File
@@ -72,6 +72,7 @@ public:
Preference<BannerCache,int> m_BannerCache;
Preference<bool> m_bPalettedBannerCache;
Preference<bool> m_bFastLoad;
Preference<bool> m_bFastLoadAdditionalSongs;
Preference<bool> m_bOnlyDedicatedMenuButtons;
Preference<bool> m_bMenuTimer;
+5
View File
@@ -113,7 +113,12 @@ void SongManager::InitSongsFromDisk( LoadingWindow *ld )
{
RageTimer tm;
LoadStepManiaSongDir( SONGS_DIR, ld );
const bool bOldVal = PREFSMAN->m_bFastLoad;
PREFSMAN->m_bFastLoad.Set( PREFSMAN->m_bFastLoadAdditionalSongs );
LoadStepManiaSongDir( ADDITIONAL_SONGS_DIR, ld );
PREFSMAN->m_bFastLoad.Set( bOldVal );
LOG->Trace( "Found %d songs in %f seconds.", (int)m_pSongs.size(), tm.GetDeltaTime() );
}