This commit is contained in:
Glenn Maynard
2007-02-11 07:38:59 +00:00
parent b0430161b9
commit fc5c1cc295
2 changed files with 4 additions and 9 deletions
+2 -4
View File
@@ -100,15 +100,13 @@ XNode* Bookkeeper::CreateNode() const
for( map<Date,int>::const_iterator it = m_mapCoinsForHour.begin(); it != m_mapCoinsForHour.end(); ++it )
{
XNode *pDay = pData->AppendChild( "Coins" );
int iCoins = it->second;
XNode *pDay = pData->AppendChild( "Coins", iCoins );
const Date &d = it->first;
pDay->AppendAttr( "Hour", d.m_iHour );
pDay->AppendAttr( "Day", d.m_iDayOfYear );
pDay->AppendAttr( "Year", d.m_iYear );
int iCoins = it->second;
pDay->SetTextValue( iCoins );
}
}
+2 -5
View File
@@ -53,11 +53,8 @@ void ExportStrings::LuaInformation()
pNode->AppendAttr( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
pNode->AppendAttr( "xsi:schemaLocation", "http://www.stepmania.com Lua.xsd" );
XNode *pVersionNode = pNode->AppendChild( "Version" );
pVersionNode->SetTextValue( PRODUCT_ID_VER );
XNode *pDateNode = pNode->AppendChild( "Date" );
pDateNode->SetTextValue( DateTime::GetNowDate().GetString() );
pNode->AppendChild( "Version", PRODUCT_ID_VER );
pNode->AppendChild( "Date", DateTime::GetNowDate().GetString() );
XmlFileUtil::SaveToFile( pNode, "Lua.xml", "Lua.xsl" );