From 001d2cde30e2d1c447ef86ff28da2a04b5449000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 23 Aug 2015 22:19:20 +0200 Subject: [PATCH] add the map to the exception.log --- OpenRA.Game/Support/Program.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenRA.Game/Support/Program.cs b/OpenRA.Game/Support/Program.cs index c29c87e8b9..79237d995c 100644 --- a/OpenRA.Game/Support/Program.cs +++ b/OpenRA.Game/Support/Program.cs @@ -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();