From fbd3a2efeaa35c644cd5306d8990454c44e579cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-R=C3=A9my=20Buchs?= Date: Thu, 16 Mar 2017 17:22:59 +0100 Subject: [PATCH] Load debug symbols (.mdb on mono only; .pdb on .NET only) for mods if they are present --- OpenRA.Game/ObjectCreator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/ObjectCreator.cs b/OpenRA.Game/ObjectCreator.cs index 238a4a920b..c9c3c0aa03 100644 --- a/OpenRA.Game/ObjectCreator.cs +++ b/OpenRA.Game/ObjectCreator.cs @@ -63,8 +63,8 @@ namespace OpenRA if (isMonoRuntime) hasSymbols = modFiles.TryOpen(path + ".mdb", out symbolStream); - // .NET and newer mono versions can load portable .pdb files. - if (!hasSymbols) + // .NET uses .pdb files. + else hasSymbols = modFiles.TryOpen(path.Substring(0, path.Length - 4) + ".pdb", out symbolStream); assembly = hasSymbols ? Assembly.Load(data, symbolStream.ReadAllBytes()) : Assembly.Load(data);