move a couple preferences out of PrefsManager
This commit is contained in:
@@ -568,14 +568,6 @@ void PrefsManager::ReadPrefsFromFile( CString sIni )
|
||||
ini.GetValue( "Debug", "LogCheckpoints", m_bLogCheckpoints );
|
||||
ini.GetValue( "Debug", "ShowLoadingWindow", m_bShowLoadingWindow );
|
||||
|
||||
#if defined (WITHOUT_NETWORKING)
|
||||
#else
|
||||
ini.GetValue( "Options", "LastConnectedServer", m_sLastServer );
|
||||
ini.GetValue( "Options", "ServerWaitSeconds", m_fStartWait );
|
||||
if ( m_fStartWait == 0.0 )
|
||||
m_fStartWait = 2;
|
||||
#endif
|
||||
|
||||
FOREACH( IPreference*, *g_pvpSubscribers, p ) (*p)->ReadFrom( ini );
|
||||
}
|
||||
|
||||
@@ -823,12 +815,6 @@ void PrefsManager::SaveGlobalPrefsToDisk() const
|
||||
ini.SetValue( "Debug", "LogVirtualMemory", m_bLogVirtualMemory );
|
||||
#endif
|
||||
|
||||
#if defined (WITHOUT_NETWORKING)
|
||||
#else
|
||||
ini.SetValue( "Options", "LastConnectedServer", m_sLastServer );
|
||||
ini.SetValue( "Options", "ServerWaitSeconds", m_fStartWait );
|
||||
#endif
|
||||
|
||||
FOREACH_CONST( IPreference*, *g_pvpSubscribers, p ) (*p)->WriteTo( ini );
|
||||
|
||||
ini.WriteFile( STEPMANIA_INI_PATH );
|
||||
|
||||
Reference in New Issue
Block a user