move Preferences from ThemeManager to completely in PrefsManager
Also, allow Defaults.ini and Static.ini to have sections
This commit is contained in:
@@ -56,10 +56,10 @@ READFROM_AND_WRITETO( float )
|
||||
READFROM_AND_WRITETO( bool )
|
||||
READFROM_AND_WRITETO( CString )
|
||||
|
||||
void IPreference::ReadFrom( const IniFile &ini )
|
||||
void IPreference::ReadFrom( const IniFile &ini, const CString &sSection )
|
||||
{
|
||||
CString sVal;
|
||||
if( ini.GetValue( "Options", m_sName, sVal ) )
|
||||
if( ini.GetValue( sSection, m_sName, sVal ) )
|
||||
FromString( sVal );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user