Add hooker and upgrade it

This commit is contained in:
Guus Waals 2025-06-01 16:13:43 +08:00
parent 8328a6e8e8
commit e3c19e890f
4 changed files with 5 additions and 2 deletions

2
.gitmodules vendored
View File

@ -9,4 +9,4 @@
url = https://github.com/guusw/tree-sitter-cpp.git url = https://github.com/guusw/tree-sitter-cpp.git
[submodule "third_party/hooker"] [submodule "third_party/hooker"]
path = third_party/hooker path = third_party/hooker
url = https://github.com/rokups/hooker.git url = https://github.com/guusw/hooker.git

View File

@ -84,6 +84,7 @@ function(setup_target TARGET DBG_MODE)
) )
target_link_libraries(${TARGET} PRIVATE target_link_libraries(${TARGET} PRIVATE
DbgHelp DbgHelp
hooker
) )
find_program(gh_tool find_program(gh_tool

View File

@ -1,6 +1,8 @@
add_subdirectory(spdlog) add_subdirectory(spdlog)
if(WIN32) if(WIN32)
add_subdirectory(hooker)
add_library(binkw32_imp SHARED IMPORTED) add_library(binkw32_imp SHARED IMPORTED)
set_target_properties(binkw32_imp PROPERTIES set_target_properties(binkw32_imp PROPERTIES
IMPORTED_IMPLIB ${CMAKE_CURRENT_LIST_DIR}/bink/binkw32.lib IMPORTED_IMPLIB ${CMAKE_CURRENT_LIST_DIR}/bink/binkw32.lib

2
third_party/hooker vendored

@ -1 +1 @@
Subproject commit a2877b8ff301ce3fb9b671965f6e922a5c526373 Subproject commit a0d0e5adf494bebeeb7b2f2be338790b76f0167b