This commit is contained in:
Jenny White 2018-04-29 11:05:33 +03:00
parent 8e094f7c0f
commit 2378a740bb
3 changed files with 7 additions and 3 deletions

View File

@ -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(), \

View File

@ -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");
"Start message with !! and it will be only visible to cathook users");
int spectator_target;

View File

@ -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)