diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/console.c | 2 | ||||
-rw-r--r-- | src/common/mmo.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/common/console.c b/src/common/console.c index 55a9815f5..5923775b7 100644 --- a/src/common/console.c +++ b/src/common/console.c @@ -25,6 +25,7 @@ #include "common/cbasetypes.h" #include "common/core.h" +#include "common/mmo.h" #include "common/nullpo.h" #include "common/showmsg.h" #include "common/sysinfo.h" @@ -93,6 +94,7 @@ static void display_title(void) ShowInfo("Compiled with %s\n", sysinfo->compiler()); ShowInfo("Compile Flags: %s\n", sysinfo->cflags()); ShowInfo("Timer Function Type: %s\n", sysinfo->time()); + ShowInfo("Packet version: %d " PACKETTYPE "\n", PACKETVER); } /** diff --git a/src/common/mmo.h b/src/common/mmo.h index 3f0d4dea4..d6946cecc 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -97,26 +97,31 @@ #if !defined(PACKETVER_RE) && !defined(PACKETVER_ZERO) && !defined(PACKETVER_SAK) && !defined(PACKETVER_AD) #define PACKETVER_MAIN_NUM PACKETVER + #define PACKETTYPE "main" #else #define PACKETVER_MAIN_NUM 0 #endif #ifdef PACKETVER_RE #define PACKETVER_RE_NUM PACKETVER + #define PACKETTYPE "RE" #else #define PACKETVER_RE_NUM 0 #endif #ifdef PACKETVER_ZERO #define PACKETVER_ZERO_NUM PACKETVER + #define PACKETTYPE "zero" #else #define PACKETVER_ZERO_NUM 0 #endif #ifdef PACKETVER_SAK #define PACKETVER_SAK_NUM PACKETVER + #define PACKETTYPE "sak" #else #define PACKETVER_SAK_NUM 0 #endif #ifdef PACKETVER_AD #define PACKETVER_AD_NUM PACKETVER + #define PACKETTYPE "ad" #else #define PACKETVER_AD_NUM 0 #endif |