Load mod yaml via the virtual filesystem.

This commit is contained in:
Paul Chote
2016-01-21 17:36:06 +00:00
parent 45bae7e9b3
commit 4a12e7bafc
11 changed files with 31 additions and 19 deletions

View File

@@ -112,7 +112,7 @@ namespace OpenRA
return t;
};
var tree = MiniYaml.Merge(files.Select(MiniYaml.FromFile).Append(nodes))
var tree = MiniYaml.Merge(files.Select(s => MiniYaml.FromStream(modData.ModFiles.Open(s))).Append(nodes))
.ToDictionaryWithConflictLog(n => n.Key, n => n.Value, "LoadYamlRules", null, null);
RaiseProgress();