Report custom map rule errors in the lint output.

This commit is contained in:
Paul Chote
2018-06-12 18:31:52 +00:00
committed by abcdefg30
parent 15e78332a3
commit 4d664d4f74
3 changed files with 10 additions and 3 deletions

View File

@@ -215,6 +215,7 @@ namespace OpenRA
public Ruleset Rules { get; private set; }
public bool InvalidCustomRules { get; private set; }
public Exception InvalidCustomRulesException { get; private set; }
/// <summary>
/// The top-left of the playable area in projected world coordinates
@@ -405,6 +406,7 @@ namespace OpenRA
{
Log.Write("debug", "Failed to load rules for {0} with error {1}", Title, e);
InvalidCustomRules = true;
InvalidCustomRulesException = e;
Rules = Ruleset.LoadDefaultsForTileSet(modData, Tileset);
}