Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Include mod.io symbols when crashing both in editor and in packaged b…
Browse files Browse the repository at this point in the history
…uilds on windows
  • Loading branch information
MarkusRannare committed Dec 8, 2020
1 parent c55cf5b commit b459710
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/modio/modio.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
}

Expand Down

0 comments on commit b459710

Please sign in to comment.