drop StepMania.ini sections. Almost everything is in [Options], and it's

hard enough keeping straight which arbitrary options screen an option
is in without having a separate categorization for the INI.  (This will
simplify later changes.)
This commit is contained in:
Glenn Maynard
2005-05-19 01:25:38 +00:00
parent cf933964f2
commit ea1bede8c3
7 changed files with 265 additions and 279 deletions
+3 -11
View File
@@ -7,15 +7,7 @@
#include "LuaManager.h"
#include "MessageManager.h"
static const CString PrefsGroupNames[] = {
"Debug",
"Editor",
"Options",
};
XToString( PrefsGroup, NUM_PREFS_GROUPS );
IPreference::IPreference( PrefsGroup PrefsGroup, const CString& sName ):
m_PrefsGroup( PrefsGroup ),
IPreference::IPreference( const CString& sName ):
m_sName( sName )
{
PrefsManager::Subscribe( this );
@@ -82,13 +74,13 @@ READFROM_AND_WRITETO( RageSoundReader_Resample::ResampleQuality, int& )
void IPreference::ReadFrom( const IniFile &ini )
{
CString sVal;
if( ini.GetValue( PrefsGroupToString(m_PrefsGroup), m_sName, sVal ) )
if( ini.GetValue( "Options", m_sName, sVal ) )
FromString( sVal );
}
void IPreference::WriteTo( IniFile &ini ) const
{
ini.SetValue( PrefsGroupToString(m_PrefsGroup), m_sName, ToString() );
ini.SetValue( "Options", m_sName, ToString() );
}
void BroadcastPreferenceChanged( const CString& sPreferenceName )