diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-05 23:53:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-14 06:00:50 +0300 |
commit | a9caa4ea37115869eb3926ca6e4c53709e7d9337 (patch) | |
tree | 0940de7d3992bfe0adacf3a36a6831ac516c99e7 /src/common | |
parent | 94366099f9019643c9e431a35af064283fab5a0c (diff) | |
download | hercules-a9caa4ea37115869eb3926ca6e4c53709e7d9337.tar.gz hercules-a9caa4ea37115869eb3926ca6e4c53709e7d9337.tar.bz2 hercules-a9caa4ea37115869eb3926ca6e4c53709e7d9337.tar.xz hercules-a9caa4ea37115869eb3926ca6e4c53709e7d9337.zip |
Update HPM hooks.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/HPMDataCheck.h | 5 | ||||
-rw-r--r-- | src/common/HPMSymbols.inc.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/common/HPMDataCheck.h b/src/common/HPMDataCheck.h index ecdc83740..674e8ccc8 100644 --- a/src/common/HPMDataCheck.h +++ b/src/common/HPMDataCheck.h @@ -256,6 +256,11 @@ HPExport const struct s_HPMDataCheck HPMDataCheck[] = { #else #define COMMON_NULLPO_H #endif // COMMON_NULLPO_H + #ifdef COMMON_PACKETS_H + { "packets_interface", sizeof(struct packets_interface), SERVER_TYPE_ALL }, + #else + #define COMMON_PACKETS_H + #endif // COMMON_PACKETS_H #ifdef COMMON_RANDOM_H { "rnd_interface", sizeof(struct rnd_interface), SERVER_TYPE_ALL }, #else diff --git a/src/common/HPMSymbols.inc.h b/src/common/HPMSymbols.inc.h index 15acb1b06..146379508 100644 --- a/src/common/HPMSymbols.inc.h +++ b/src/common/HPMSymbols.inc.h @@ -218,6 +218,9 @@ struct npc_interface *npc; #ifdef COMMON_NULLPO_H /* nullpo */ struct nullpo_interface *nullpo; #endif // COMMON_NULLPO_H +#ifdef COMMON_PACKETS_H /* packets */ +struct packets_interface *packets; +#endif // COMMON_PACKETS_H #ifdef MAP_PARTY_H /* party */ struct party_interface *party; #endif // MAP_PARTY_H @@ -559,6 +562,10 @@ HPExport const char *HPM_shared_symbols(int server_type) if ((server_type&(SERVER_TYPE_ALL)) != 0 && !HPM_SYMBOL("nullpo", nullpo)) return "nullpo"; #endif // COMMON_NULLPO_H +#ifdef COMMON_PACKETS_H /* packets */ + if ((server_type&(SERVER_TYPE_ALL)) != 0 && !HPM_SYMBOL("packets", packets)) + return "packets"; +#endif // COMMON_PACKETS_H #ifdef MAP_PARTY_H /* party */ if ((server_type&(SERVER_TYPE_MAP)) != 0 && !HPM_SYMBOL("party", party)) return "party"; |