print IAR version number on console when saving

viewer-2-initial-appearance
Justin Clark-Casey (justincc) 2010-10-22 19:34:06 +01:00 committed by Jonathan Freedman
parent bdd6857006
commit a7a8fdc7da
1 changed files with 6 additions and 2 deletions

View File

@ -401,13 +401,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
/// <returns></returns> /// <returns></returns>
public static string Create0p1ControlFile() public static string Create0p1ControlFile()
{ {
int majorVersion = 0, minorVersion = 1;
m_log.InfoFormat("[INVENTORY ARCHIVER]: Creating version {0}.{1} IAR", majorVersion, minorVersion);
StringWriter sw = new StringWriter(); StringWriter sw = new StringWriter();
XmlTextWriter xtw = new XmlTextWriter(sw); XmlTextWriter xtw = new XmlTextWriter(sw);
xtw.Formatting = Formatting.Indented; xtw.Formatting = Formatting.Indented;
xtw.WriteStartDocument(); xtw.WriteStartDocument();
xtw.WriteStartElement("archive"); xtw.WriteStartElement("archive");
xtw.WriteAttributeString("major_version", "0"); xtw.WriteAttributeString("major_version", majorVersion.ToString());
xtw.WriteAttributeString("minor_version", "1"); xtw.WriteAttributeString("minor_version", minorVersion.ToString());
xtw.WriteEndElement(); xtw.WriteEndElement();
xtw.Flush(); xtw.Flush();