From 9d8e4877019a7eac6b93263a49a4dc6ab02111a3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Aug 2016 03:00:17 +0300 Subject: Add support for exit codes for building code. --- src/echar/char.c | 3 ++- src/elogin/parse.c | 1 + src/emap/atcommand.c | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/echar/char.c b/src/echar/char.c index 6223ac4..b9e339e 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -329,8 +329,9 @@ void echar_parse_map_serverexit(int mapFd) { case 100: // all exit case 101: // all restart - case 104: // git pull and all restart case 102: // restart char and map server + case 104: // git pull and all restart + case 105: // build all echat_send_login_serverexit(code); HSleep(1); core->shutdown_callback(); diff --git a/src/elogin/parse.c b/src/elogin/parse.c index c2d1d10..15b0f7a 100644 --- a/src/elogin/parse.c +++ b/src/elogin/parse.c @@ -223,6 +223,7 @@ void elogin_parse_serverexit(int fd) case 100: // all exit case 101: // all restart case 104: // git pull and all restart + case 105: // build 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 54370af..8d6979a 100644 --- a/src/emap/atcommand.c +++ b/src/emap/atcommand.c @@ -147,6 +147,7 @@ ACMD1(mapExit) // 102 - restart char and map servers // 103 - restart map server // 104 - git pull and restart all servers +// 105 - build all ACMD1(serverExit) { int code = 0; -- cgit v1.2.3-70-g09d2