add the map to the exception.log

This commit is contained in:
Matthias Mailänder
2015-08-23 22:19:20 +02:00
parent 60eea5a507
commit 001d2cde30

View File

@@ -55,6 +55,12 @@ namespace OpenRA
Log.Write("exception", "{0} Mod at Version {1}", mod.Title, mod.Version);
}
if (Game.OrderManager != null && Game.OrderManager.World != null && Game.OrderManager.World.Map != null)
{
var map = Game.OrderManager.World.Map;
Log.Write("exception", "on map {0} ({1} by {2}).", map.Uid, map.Title, map.Author);
}
Log.Write("exception", "Operating System: {0} ({1})", Platform.CurrentPlatform, Environment.OSVersion);
Log.Write("exception", "Runtime Version: {0}", Platform.RuntimeVersion);
var rpt = BuildExceptionReport(e).ToString();