comparison api/Factories/Xml/WarFoundryXmlSaver.cs @ 115:d0c60b3204c1

Re #53: Add XML army saving * Make file identifiers public * Add army identifier to comment no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sat, 22 Aug 2009 19:41:15 +0000
parents 863518044d38
children 571eee2b7b30
comparison
equal deleted inserted replaced
114:a143b077a825 115:d0c60b3204c1
33 try 33 try
34 { 34 {
35 file = ZipFile.Create(savePath); 35 file = ZipFile.Create(savePath);
36 file.BeginUpdate(); 36 file.BeginUpdate();
37 file.Add(new StringZipEntrySource(CreateXmlString(toSave)), "data.armyx"); 37 file.Add(new StringZipEntrySource(CreateXmlString(toSave)), "data.armyx");
38 file.SetComment(AbstractNativeWarFoundryFactory.ARMY_ZIP_IDENTIFIER);
38 file.CommitUpdate(); 39 file.CommitUpdate();
39 success = true; 40 success = true;
40 } 41 }
41 finally 42 finally
42 { 43 {