summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-10 16:24:50 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-10 16:24:50 +0300
commit4ed85f7faf02a42f943d13318a0f006184c0434a (patch)
tree4d752159e5d469d10282f2bd7d3dd6a7d8dd50e3
parent5bcee0f52e61a2a2246069a8e23e69d7f073ffc7 (diff)
downloadevol-hercules-4ed85f7faf02a42f943d13318a0f006184c0434a.tar.gz
evol-hercules-4ed85f7faf02a42f943d13318a0f006184c0434a.tar.bz2
evol-hercules-4ed85f7faf02a42f943d13318a0f006184c0434a.tar.xz
evol-hercules-4ed85f7faf02a42f943d13318a0f006184c0434a.zip
Add support for exit codes for building plugin code.
-rw-r--r--src/echar/char.c1
-rw-r--r--src/elogin/parse.c1
-rw-r--r--src/emap/atcommand.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/echar/char.c b/src/echar/char.c
index 34e904f..ec517ec 100644
--- a/src/echar/char.c
+++ b/src/echar/char.c
@@ -335,6 +335,7 @@ void echar_parse_map_serverexit(int mapFd)
case 106: // rebuild all
case 107: // git pull and build all
case 108: // git pull and rebuild all
+ case 109: // build plugin
echat_send_login_serverexit(code);
HSleep(1);
core->shutdown_callback();
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index d142f34..ac8001b 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -227,6 +227,7 @@ void elogin_parse_serverexit(int fd)
case 106: // rebuild all
case 107: // git pull and build all
case 108: // git pull and rebuild all
+ case 109: // build plugin
core->shutdown_callback();
break;
case 102: // restart char and map server
diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c
index a6ce11c..4027acd 100644
--- a/src/emap/atcommand.c
+++ b/src/emap/atcommand.c
@@ -151,6 +151,7 @@ ACMD1(mapExit)
// 106 - rebuild all
// 107 - git pull and build all
// 108 - git pull and rebuild all
+// 109 - build plugin
ACMD1(serverExit)
{
int code = 0;