move Preferences from ThemeManager to completely in PrefsManager

Also, allow Defaults.ini and Static.ini to have sections
This commit is contained in:
Chris Danford
2005-11-09 10:55:30 +00:00
parent 089a187a6c
commit 81037f05cd
9 changed files with 155 additions and 114 deletions
+2 -2
View File
@@ -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 );
}