Skip to content

Commit

Permalink
Update linux funchook
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Dec 13, 2023
1 parent 42f87cb commit f0936c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Mods/SML/Source/SML/SML.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,26 @@ public SML(ReadOnlyTargetRules Target) : base(Target)
if (Target.Platform == UnrealTargetPlatform.Win64)
{
// https://github.com/kubo/funchook/tree/7cb8819594f0d586454011ab691fab4edb625068
// Built using Visual Studio project generated by cmake
// funchook will additionally build distorm, which is added to the Visual Studio project
// as a dependency, along with psapi, so that they don't need to be included here separately
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "funchook.lib"));

// https://github.com/satisfactorymodding/AssemblyAnalyzer/tree/e08ec4402b6e016a9b7aa59ab8c82dd0840e8f98
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "AssemblyAnalyzer.lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "Zydis.lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "Zycore.lib"));
} else if (Target.Platform == UnrealTargetPlatform.Linux) {
// [email protected]:kubo/funchook.git
// cmake <toolchain> -DFUNCHOOK_DISASM=zydis
// funchook will download and build Zydis as a dependency. Copy those static libs in along
// with funchook.
// https://github.com/kubo/funchook/tree/7cb8819594f0d586454011ab691fab4edb625068
// Built on windows using the Unreal Engine cross-compile clang toolchain
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libfunchook.a"));
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libZydis.a"));
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libZycore.a"));
// funchook will additionally build distorm
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libdistorm.a"));

// https://github.com/satisfactorymodding/AssemblyAnalyzer
// Used for SetDebugLoggingHook and DiscoverFunction
// https://github.com/satisfactorymodding/AssemblyAnalyzer/tree/e08ec4402b6e016a9b7aa59ab8c82dd0840e8f98
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libAssemblyAnalyzer.a"));
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libZydis.a"));
PublicAdditionalLibraries.Add(Path.Combine(LibraryFolder, "libZycore.a"));
}

AddFactoryGameInfo();
Expand Down
Binary file added Mods/SML/ThirdParty/Linux/libdistorm.a
Binary file not shown.
Binary file modified Mods/SML/ThirdParty/Linux/libfunchook.a
Binary file not shown.

0 comments on commit f0936c7

Please sign in to comment.