diff --git a/stepmania/src/XmlFile.cpp b/stepmania/src/XmlFile.cpp index 4ed9322f36..c45280c39d 100644 --- a/stepmania/src/XmlFile.cpp +++ b/stepmania/src/XmlFile.cpp @@ -508,6 +508,7 @@ bool XNode::GetAttrValue( const RString &sName, bool &out ) const { const RStrin bool XNode::GetAttrValue( const RString &sName, unsigned &out ) const { const RString* pAttr=GetAttr(sName); if(pAttr==NULL) return false; out = 0; sscanf(*pAttr,"%u",&out); return true; } bool XNode::GetAttrValue( const RString &sName, DateTime &out ) const { const RString* pAttr=GetAttr(sName); if(pAttr==NULL) return false; out.FromString( *pAttr ); return true; } +void XNode::SetValue( const RString &v ) { m_sValue = v; } void XNode::SetValue( int v ) { m_sValue = ssprintf("%d",v); } void XNode::SetValue( float v ) { m_sValue = ssprintf("%f",v); } void XNode::SetValue( bool v ) { m_sValue = ssprintf("%d",v); } diff --git a/stepmania/src/XmlFile.h b/stepmania/src/XmlFile.h index 46069fa048..306f249c8e 100644 --- a/stepmania/src/XmlFile.h +++ b/stepmania/src/XmlFile.h @@ -50,6 +50,7 @@ public: void GetValue( bool &out ) const; void GetValue( unsigned &out ) const; void GetValue( DateTime &out ) const; + void SetValue( const RString &v ); void SetValue( int v ); void SetValue( float v ); void SetValue( bool v );