summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/version.cpp7
-rw-r--r--src/common/version.hpp2
2 files changed, 9 insertions, 0 deletions
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