Skip to content

Commit f0936c7

Browse files
committed
Update linux funchook
1 parent 42f87cb commit f0936c7

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

Mods/SML/Source/SML/SML.Build.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,26 @@ public SML(ReadOnlyTargetRules Target) : base(Target)
5151
if (Target.Platform == UnrealTargetPlatform.Win64)
5252
{
5353
// https://github.com/kubo/funchook/tree/7cb8819594f0d586454011ab691fab4edb625068
54+
// Built using Visual Studio project generated by cmake
55+
// funchook will additionally build distorm, which is added to the Visual Studio project
56+
// as a dependency, along with psapi, so that they don't need to be included here separately
5457
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "funchook.lib"));
5558

5659
// https://github.com/satisfactorymodding/AssemblyAnalyzer/tree/e08ec4402b6e016a9b7aa59ab8c82dd0840e8f98
5760
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "AssemblyAnalyzer.lib"));
5861
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "Zydis.lib"));
5962
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "Zycore.lib"));
6063
} else if (Target.Platform == UnrealTargetPlatform.Linux) {
61-
// git@github.com:kubo/funchook.git
62-
// cmake <toolchain> -DFUNCHOOK_DISASM=zydis
63-
// funchook will download and build Zydis as a dependency. Copy those static libs in along
64-
// with funchook.
64+
// https://github.com/kubo/funchook/tree/7cb8819594f0d586454011ab691fab4edb625068
65+
// Built on windows using the Unreal Engine cross-compile clang toolchain
6566
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libfunchook.a"));
66-
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libZydis.a"));
67-
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libZycore.a"));
67+
// funchook will additionally build distorm
68+
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libdistorm.a"));
6869

69-
// https://github.com/satisfactorymodding/AssemblyAnalyzer
70-
// Used for SetDebugLoggingHook and DiscoverFunction
70+
// https://github.com/satisfactorymodding/AssemblyAnalyzer/tree/e08ec4402b6e016a9b7aa59ab8c82dd0840e8f98
7171
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libAssemblyAnalyzer.a"));
72+
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libZydis.a"));
73+
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libZycore.a"));
7274
}
7375

7476
AddFactoryGameInfo();
380 KB
Binary file not shown.
111 KB
Binary file not shown.

0 commit comments

Comments
 (0)