From 5bcee0f52e61a2a2246069a8e23e69d7f073ffc7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Aug 2016 03:36:09 +0300 Subject: Add support for exit codes for git pull and rebuilding code. --- src/echar/char.c | 1 + src/elogin/parse.c | 1 + src/emap/atcommand.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/echar/char.c b/src/echar/char.c index 785c2f2..34e904f 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -334,6 +334,7 @@ void echar_parse_map_serverexit(int mapFd) case 105: // build all case 106: // rebuild all case 107: // git pull and build all + case 108: // git pull and rebuild all echat_send_login_serverexit(code); HSleep(1); core->shutdown_callback(); diff --git a/src/elogin/parse.c b/src/elogin/parse.c index 40f983f..d142f34 100644 --- a/src/elogin/parse.c +++ b/src/elogin/parse.c @@ -226,6 +226,7 @@ void elogin_parse_serverexit(int fd) case 105: // build all case 106: // rebuild all case 107: // git pull and build all + case 108: // git pull and rebuild all core->shutdown_callback(); break; case 102: // restart char and map server diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c index 2c7bc87..a6ce11c 100644 --- a/src/emap/atcommand.c +++ b/src/emap/atcommand.c @@ -150,6 +150,7 @@ ACMD1(mapExit) // 105 - build all // 106 - rebuild all // 107 - git pull and build all +// 108 - git pull and rebuild all ACMD1(serverExit) { int code = 0; -- cgit v1.2.3-70-g09d2