diff --git a/subprojects/packagefiles/safetyhook.patch b/subprojects/packagefiles/safetyhook.patch index c2c7d9a..1286f17 100644 --- a/subprojects/packagefiles/safetyhook.patch +++ b/subprojects/packagefiles/safetyhook.patch @@ -16,62 +16,3 @@ + link_with: safetyhook_lib, + include_directories: safetyhook_inc, +) ---- safetyhook/safetyhook.cpp -+++ safetyhook/safetyhook.cpp -@@ -14,7 +14,7 @@ - #include - - #define NOMINMAX --#include -+#include - - - namespace safetyhook { -@@ -324,7 +324,7 @@ VmtHook create_vmt(void* object) { - - #include - --#include -+#include - - #if __has_include() - #include -@@ -858,7 +858,7 @@ std::expected MidHook::setup( - // Source file: thread_freezer.cpp - // - --#include -+#include - #include - - -@@ -992,7 +992,7 @@ void fix_ip(CONTEXT& ctx, uint8_t* old_ip, uint8_t* new_ip) { - // Source file: utility.cpp - // - --#include -+#include - - - namespace safetyhook { -@@ -1046,7 +1046,7 @@ bool is_executable(uint8_t* address) { - // Source file: vmt_hook.cpp - // - --#include -+#include - - - ---- safetyhook/safetyhook.hpp -+++ safetyhook/safetyhook.hpp -@@ -898,7 +898,7 @@ namespace safetyhook { - #include - #include - --#include -+#include - - namespace safetyhook { - /// @brief Executes a function while all other threads are frozen. Also allows for visiting each frozen thread and - diff --git a/subprojects/safetyhook.wrap b/subprojects/safetyhook.wrap index ec9cbeb..bb5123c 100644 --- a/subprojects/safetyhook.wrap +++ b/subprojects/safetyhook.wrap @@ -1,10 +1,10 @@ -[wrap-file] -directory = safetyhook -source_url = https://github.com/cursey/safetyhook/releases/download/v0.1.3/safetyhook-amalgamated-zydis.zip -source_filename = safetyhook-amalgamated-zydis.zip -source_hash = 5d02299eb9b3fef3f936fba441ad44ec08f049de4cd9125092dd63e1f1f24cfe -lead_directory_missing = yes -diff_files = safetyhook.patch - -[provide] -libsafetyhook = safetyhook_dep +[wrap-file] +directory = safetyhook +source_url = https://github.com/cursey/safetyhook/releases/download/v0.3.0/safetyhook-amalgamated-zydis.zip +source_filename = safetyhook-amalgamated-zydis.zip +source_hash = 274450d7baf6caee459752235d783ec24bd699b221b10c3df0fcce2a4e8e2ac8 +lead_directory_missing = yes +diff_files = safetyhook.patch + +[provide] +libsafetyhook = safetyhook_dep