From 94366099f9019643c9e431a35af064283fab5a0c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Nov 2018 23:37:03 +0300 Subject: Add interface for packets in common. For now supported only packet length fields. --- src/common/core.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common/core.c') diff --git a/src/common/core.c b/src/common/core.c index 1ecf1df83..dbd1d2596 100644 --- a/src/common/core.c +++ b/src/common/core.c @@ -36,6 +36,7 @@ #include "common/mmo.h" #include "common/mutex.h" #include "common/nullpo.h" +#include "common/packets.h" #include "common/random.h" #include "common/showmsg.h" #include "common/socket.h" @@ -261,6 +262,7 @@ static void core_defaults(void) timer_defaults(); db_defaults(); socket_defaults(); + packets_defaults(); rnd_defaults(); md5_defaults(); thread_defaults(); @@ -526,6 +528,8 @@ int main(int argc, char **argv) sockt->init(); + packets->init(); + do_init(argc,argv); // Main runtime cycle @@ -539,6 +543,7 @@ int main(int argc, char **argv) retval = do_final(); HPM->final(); timer->final(); + packets->final(); sockt->final(); DB->final(); thread->final(); -- cgit v1.2.3-60-g2f50