works
This commit is contained in:
parent
8e094f7c0f
commit
2378a740bb
@ -29,7 +29,7 @@ struct SDL_Window;
|
|||||||
|
|
||||||
#define DEFINE_HOOKED_METHOD(name, rtype, ...) \
|
#define DEFINE_HOOKED_METHOD(name, rtype, ...) \
|
||||||
types::name original::name{ nullptr }; \
|
types::name original::name{ nullptr }; \
|
||||||
rtype name(__VA_ARGS__)
|
rtype methods::name(__VA_ARGS__)
|
||||||
|
|
||||||
#define HOOK_ARGS(name) \
|
#define HOOK_ARGS(name) \
|
||||||
hooked_methods::methods::name, offsets::name(), \
|
hooked_methods::methods::name, offsets::name(), \
|
||||||
|
@ -31,4 +31,6 @@ bool *bSendPackets;
|
|||||||
|
|
||||||
CatVar crypt_chat(
|
CatVar crypt_chat(
|
||||||
CV_SWITCH, "chat_crypto", "1", "Crypto chat",
|
CV_SWITCH, "chat_crypto", "1", "Crypto chat",
|
||||||
"Start message with !! and it will be only visible to cathook users");
|
"Start message with !! and it will be only visible to cathook users");
|
||||||
|
|
||||||
|
int spectator_target;
|
@ -11,7 +11,9 @@ target_sources(cathook PRIVATE
|
|||||||
"${CMAKE_CURRENT_LIST_DIR}/others.cpp"
|
"${CMAKE_CURRENT_LIST_DIR}/others.cpp"
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/Paint.cpp"
|
"${CMAKE_CURRENT_LIST_DIR}/Paint.cpp"
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/SendNetMsg.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)
|
if(EnableVisuals)
|
||||||
add_subdirectory(visual)
|
add_subdirectory(visual)
|
||||||
|
Reference in New Issue
Block a user