diff --git a/stepmania/src/Preference.cpp b/stepmania/src/Preference.cpp index 80501dead3..7dc30a470c 100644 --- a/stepmania/src/Preference.cpp +++ b/stepmania/src/Preference.cpp @@ -32,21 +32,6 @@ void IPreference::PushValue( lua_State *L ) const lua_pushnil( L ); } -void Preference::PushValue( lua_State *L ) const -{ - LuaManager::PushStack( m_currentValue, L ); -} - -void Preference::FromString( const CString &s ) -{ - m_currentValue = s; -} - -CString Preference::ToString() const -{ - return m_currentValue; -} - #define READFROM_AND_WRITETO( type ) \ void Preference::FromString( const CString &s ) \ { \ @@ -64,6 +49,7 @@ CString Preference::ToString() const READFROM_AND_WRITETO( int ) READFROM_AND_WRITETO( float ) READFROM_AND_WRITETO( bool ) +READFROM_AND_WRITETO( CString ) void IPreference::ReadFrom( const IniFile &ini ) {