From 6dd35916ffd8babcb8a4cf70389f1ebaac5e38aa Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Thu, 3 Apr 2025 13:55:02 +0000 Subject: [PATCH] temporary fix for windows --- AMBuildScript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index 56faedafb..e597b1d2e 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -534,9 +534,13 @@ class SMConfig(object): binary.sources += [ os.path.join(public_path, 'CDetour', 'detours.cpp') ] binary.compiler.cxxincludes += [ os.path.join(public_path, 'safetyhook', 'include') ] + #help(self.libsafetyhook) for task in self.libsafetyhook: if task.target.arch == binary.compiler.target.arch: - binary.compiler.linkflags += [task.binary] + if task.target.platform == 'windows': + binary.compiler.linkflags += [task.binary.path.removesuffix('.dll') + '.lib'] + else: + binary.compiler.linkflags += [task.binary] return raise Exception('No suitable build of safetyhook was found.')