diff --git a/.gitmodules b/.gitmodules index c29ac053..b863a50d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -9,4 +9,4 @@ url = https://github.com/guusw/tree-sitter-cpp.git [submodule "third_party/hooker"] path = third_party/hooker - url = https://github.com/rokups/hooker.git + url = https://github.com/guusw/hooker.git diff --git a/game_re/CMakeLists.txt b/game_re/CMakeLists.txt index 204829db..22236e0e 100644 --- a/game_re/CMakeLists.txt +++ b/game_re/CMakeLists.txt @@ -84,6 +84,7 @@ function(setup_target TARGET DBG_MODE) ) target_link_libraries(${TARGET} PRIVATE DbgHelp + hooker ) find_program(gh_tool diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 9a2d8c55..ca106b63 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -1,6 +1,8 @@ add_subdirectory(spdlog) if(WIN32) + add_subdirectory(hooker) + add_library(binkw32_imp SHARED IMPORTED) set_target_properties(binkw32_imp PROPERTIES IMPORTED_IMPLIB ${CMAKE_CURRENT_LIST_DIR}/bink/binkw32.lib diff --git a/third_party/hooker b/third_party/hooker index a2877b8f..a0d0e5ad 160000 --- a/third_party/hooker +++ b/third_party/hooker @@ -1 +1 @@ -Subproject commit a2877b8ff301ce3fb9b671965f6e922a5c526373 +Subproject commit a0d0e5adf494bebeeb7b2f2be338790b76f0167b