From 2378a740bb3117c62300c6fc017562e57691c332 Mon Sep 17 00:00:00 2001 From: Jenny White Date: Sun, 29 Apr 2018 11:05:33 +0300 Subject: [PATCH] works --- include/hooks/HookedMethods.hpp | 2 +- src/MiscTemporary.cpp | 4 +++- src/hooks/CMakeLists.txt | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/hooks/HookedMethods.hpp b/include/hooks/HookedMethods.hpp index d48c41c2..9a39fa00 100644 --- a/include/hooks/HookedMethods.hpp +++ b/include/hooks/HookedMethods.hpp @@ -29,7 +29,7 @@ struct SDL_Window; #define DEFINE_HOOKED_METHOD(name, rtype, ...) \ types::name original::name{ nullptr }; \ - rtype name(__VA_ARGS__) + rtype methods::name(__VA_ARGS__) #define HOOK_ARGS(name) \ hooked_methods::methods::name, offsets::name(), \ diff --git a/src/MiscTemporary.cpp b/src/MiscTemporary.cpp index a794fc5b..cb15851b 100644 --- a/src/MiscTemporary.cpp +++ b/src/MiscTemporary.cpp @@ -31,4 +31,6 @@ bool *bSendPackets; CatVar crypt_chat( CV_SWITCH, "chat_crypto", "1", "Crypto chat", - "Start message with !! and it will be only visible to cathook users"); \ No newline at end of file + "Start message with !! and it will be only visible to cathook users"); + +int spectator_target; \ No newline at end of file diff --git a/src/hooks/CMakeLists.txt b/src/hooks/CMakeLists.txt index 143562dc..90257059 100644 --- a/src/hooks/CMakeLists.txt +++ b/src/hooks/CMakeLists.txt @@ -11,7 +11,9 @@ target_sources(cathook PRIVATE "${CMAKE_CURRENT_LIST_DIR}/others.cpp" "${CMAKE_CURRENT_LIST_DIR}/Paint.cpp" "${CMAKE_CURRENT_LIST_DIR}/SendNetMsg.cpp" - "${CMAKE_CURRENT_LIST_DIR}/Shutdown.cpp") + "${CMAKE_CURRENT_LIST_DIR}/Shutdown.cpp" + "${CMAKE_CURRENT_LIST_DIR}/FireEvent.cpp" + "${CMAKE_CURRENT_LIST_DIR}/FireEventClientSide.cpp") if(EnableVisuals) add_subdirectory(visual)