summaryrefslogtreecommitdiff
path: root/src/net/eathena/updateprotocol.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-30 06:17:29 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-30 06:17:29 +0300
commit0db888042bdbc2c1abecd1e4328ccb8ee448bd0e (patch)
treecf504e4c8ea8c57449b16ee02721a0f4cab6cf46 /src/net/eathena/updateprotocol.cpp
parent7425f60930dd286544c12745361d4b6104d1bfa1 (diff)
downloadmanaverse-0db888042bdbc2c1abecd1e4328ccb8ee448bd0e.tar.gz
manaverse-0db888042bdbc2c1abecd1e4328ccb8ee448bd0e.tar.bz2
manaverse-0db888042bdbc2c1abecd1e4328ccb8ee448bd0e.tar.xz
manaverse-0db888042bdbc2c1abecd1e4328ccb8ee448bd0e.zip
Split updateprotocol.cpp into files for lower memory usage in compilation.
Diffstat (limited to 'src/net/eathena/updateprotocol.cpp')
-rw-r--r--src/net/eathena/updateprotocol.cpp13
1 files changed, 6 insertions, 7 deletions
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