Merge pull request #6984 from DeadlySurprise/yamlFix

Fixed yaml bug with leading spaces
This commit is contained in:
Oliver Brakmann
2015-01-20 21:42:22 +01:00
5 changed files with 88 additions and 15 deletions

View File

@@ -262,7 +262,7 @@ namespace OpenRA
AssertExists("map.yaml");
AssertExists("map.bin");
var yaml = new MiniYaml(null, MiniYaml.FromStream(Container.GetContent("map.yaml")));
var yaml = new MiniYaml(null, MiniYaml.FromStream(Container.GetContent("map.yaml"), path));
FieldLoader.Load(this, yaml);
// Support for formats 1-3 dropped 2011-02-11.

View File

@@ -60,6 +60,8 @@ namespace OpenRA
{
Console.WriteLine("Failed to load map: {0}", path);
Console.WriteLine("Details: {0}", e);
Log.Write("Debug", "Failed to load map: {0}", path);
Log.Write("Debug", "Details: {0}", e);
}
}
}