From b4597104b495b62b44931e59b8d1c32bf1c50f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20R=C3=A4nnare?= Date: Tue, 8 Dec 2020 11:30:09 +0100 Subject: [PATCH] Include mod.io symbols when crashing both in editor and in packaged builds on windows --- Source/modio/modio.Build.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/modio/modio.Build.cs b/Source/modio/modio.Build.cs index 1263365..93d3dce 100644 --- a/Source/modio/modio.Build.cs +++ b/Source/modio/modio.Build.cs @@ -110,13 +110,14 @@ public bool LoadModio(ReadOnlyTargetRules Target) PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "modio.lib")); RuntimeDependencies.Add(Path.Combine(DLLPath, "modio.dll")); + RuntimeDependencies.Add(Path.Combine(DLLPath, "modio.pdb")); string ProjectBinariesDirectory = Path.Combine(ProjectPath, "Binaries", "Win64"); if (!Directory.Exists(ProjectBinariesDirectory)) System.IO.Directory.CreateDirectory(ProjectBinariesDirectory); - string ModioDLLDestination = System.IO.Path.Combine(ProjectBinariesDirectory, "modio.dll"); - CopyFile(Path.Combine(DLLPath, "modio.dll"), ModioDLLDestination); + CopyFile(Path.Combine(DLLPath, "modio.dll"), Path.Combine(ProjectBinariesDirectory, "modio.dll")); + CopyFile(Path.Combine(DLLPath, "modio.pdb"), Path.Combine(ProjectBinariesDirectory, "modio.pdb")); PublicDelayLoadDLLs.AddRange(new string[] { "modio.dll" }); }