This commit is contained in:
Glenn Maynard
2006-09-29 21:25:57 +00:00
parent 2c5ed2c7a1
commit 63e5c3dac3
+7 -9
View File
@@ -47,19 +47,17 @@ void ExportStrings::Nsis()
void ExportStrings::LuaInformation()
{
XNode *pNode = LUA->GetLuaInformation();
XNode *pVersionNode = new XNode;
XNode *pDateNode = new XNode;
DISP_OPT disp;
pVersionNode->m_sName = "Version";
XNode *pVersionNode = pNode->AppendChild( "Version" );
pVersionNode->m_sValue = PRODUCT_ID_VER;
pNode->AppendChild( pVersionNode );
pDateNode->m_sName = "Date";
XNode *pDateNode = pNode->AppendChild( "Date" );
pDateNode->m_sValue = DateTime::GetNowDate().GetString();
pNode->AppendChild( pDateNode );
DISP_OPT disp;
disp.stylesheet = "Lua.xsl";
pNode->SaveToFile( "Lua.xml", disp );
delete pNode;
}