From 0db888042bdbc2c1abecd1e4328ccb8ee448bd0e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Jul 2018 06:17:29 +0300 Subject: Split updateprotocol.cpp into files for lower memory usage in compilation. --- src/net/eathena/updateprotocol.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/net/eathena/updateprotocol.cpp') diff --git a/src/net/eathena/updateprotocol.cpp b/src/net/eathena/updateprotocol.cpp index 26f8c92d2..b7e662e7e 100644 --- a/src/net/eathena/updateprotocol.cpp +++ b/src/net/eathena/updateprotocol.cpp @@ -24,6 +24,9 @@ #include "net/eathena/network.h" #include "net/eathena/protocolout.h" +#include "net/eathena/updateprotocol_main.h" +#include "net/eathena/updateprotocol_re.h" +#include "net/eathena/updateprotocol_zero.h" #include "debug.h" @@ -31,7 +34,6 @@ extern int packetVersion; extern int packetVersionMain; extern int packetVersionRe; extern int packetVersionZero; -extern int serverVersion; extern int evolPacketOffset; extern bool packets_main; extern bool packets_re; @@ -73,10 +75,10 @@ void updateProtocol() #define PACKETS_UPDATE #include "net/protocoloutupdate.h" #include "net/eathena/packetsout.inc" -#include "net/eathena/packetsout_shuffle_main.inc" -#include "net/eathena/packetsout_shuffle_re.inc" -#include "net/eathena/packetsout_shuffle_zero.inc" #undef packet + updateProtocolMain(); + updateProtocolRe(); + updateProtocolZero(); Network *const network = Network::mInstance; if (network != nullptr) { @@ -87,9 +89,6 @@ void updateProtocol() } PACKETSOUT_VOID -PACKETSOUT_SHUFFLE_MAIN_VOID -PACKETSOUT_SHUFFLE_RE_VOID -PACKETSOUT_SHUFFLE_ZERO_VOID PROTOCOLOUTUPDATE_VOID PROTOCOLOUT_VOID -- cgit v1.2.3-70-g09d2