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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user