seperate fast load for regular and additional songs
This commit is contained in:
@@ -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 ),
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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() );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user