Persist custom map package contents on save. Fixes #4318.

This commit is contained in:
Paul Chote
2013-12-18 21:50:49 +13:00
parent 7ae831381a
commit 50ad3b64d8

View File

@@ -284,6 +284,15 @@ namespace OpenRA
var s = root.WriteToString();
entries.Add("map.yaml", Encoding.UTF8.GetBytes(s));
// Add any custom assets
foreach (var file in Container.AllFileNames())
{
if (file == "map.bin" || file == "map.yaml")
continue;
entries.Add(file, Container.GetContent(file).ReadAllBytes());
}
// Saving the map to a new location
if (toPath != Path)
{