Make map saving independent of Container type. Saving zip/oramap/mix untested as the editor cannot load non-folder maps.

This commit is contained in:
Paul Chote
2010-12-29 11:39:26 +13:00
parent fa36c71023
commit c3ff679f3a
8 changed files with 73 additions and 81 deletions

View File

@@ -226,8 +226,7 @@ namespace OpenRA
entries.Add("map.bin", SaveBinaryData());
var s = root.WriteToString();
entries.Add("map.yaml", System.Text.Encoding.UTF8.GetBytes(s));
PackageWriter.CreateZip(filepath, entries);
Container = new ZipFile(filepath, 0);
Container.Write(entries);
}
static byte ReadByte(Stream s)