From 41a63f4b3d4e5287af652a1b9d30c87980923d35 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 18 Oct 2013 07:54:50 -0700 Subject: Rewrite @command dispatch and help --- src/common/version.cpp | 7 +++++++ src/common/version.hpp | 2 ++ 2 files changed, 9 insertions(+) (limited to 'src/common') diff --git a/src/common/version.cpp b/src/common/version.cpp index 7f4a0f2..1ee4071 100644 --- a/src/common/version.cpp +++ b/src/common/version.cpp @@ -26,3 +26,10 @@ Version CURRENT_MAP_SERVER_VERSION = 0, TMWA_SERVER_MAP, VENDOR_VERSION, }; + +#define S2(a) #a +#define S(a) S2(a) + +const char CURRENT_VERSION_STRING[] = "TMWA " + S(VERSION_MAJOR) "." S(VERSION_MINOR) "." S(VERSION_PATCH) + " dev" S(VERSION_DEVEL) " (" VENDOR " " S(VENDOR_VERSION) ")"; diff --git a/src/common/version.hpp b/src/common/version.hpp index e34ec50..677806b 100644 --- a/src/common/version.hpp +++ b/src/common/version.hpp @@ -29,4 +29,6 @@ extern Version CURRENT_LOGIN_SERVER_VERSION; extern Version CURRENT_CHAR_SERVER_VERSION; extern Version CURRENT_MAP_SERVER_VERSION; +extern const char CURRENT_VERSION_STRING[]; + #endif // TMWA_COMMON_VERSION_HPP -- cgit v1.2.3-70-g09d2