summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorBjørn <bjorn@horst-dieter.(none)>2009-04-12 19:04:20 +0200
committerBjørn <bjorn@horst-dieter.(none)>2009-04-12 19:06:38 +0200
commit9f5b89189f00c959882f86067634a512e6970614 (patch)
tree8964803d49528d35585f1fb26f8f22e3c7353a52 /src/main.h
parenta6998fbdfaf84aa1920564d97e3421ed28c9a893 (diff)
downloadmana-9f5b89189f00c959882f86067634a512e6970614.tar.gz
mana-9f5b89189f00c959882f86067634a512e6970614.tar.bz2
mana-9f5b89189f00c959882f86067634a512e6970614.tar.xz
mana-9f5b89189f00c959882f86067634a512e6970614.zip
Moved client version string creation to preprocessor
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/main.h b/src/main.h
index 95f779eb..49a034f5 100644
--- a/src/main.h
+++ b/src/main.h
@@ -61,6 +61,16 @@
#define PACKAGE_VERSION "0.0.29"
#endif
+#ifdef PACKAGE_VERSION
+#ifdef TMWSERV_SUPPORT
+#define FULL_VERSION "v" PACKAGE_VERSION " (tmwserv)"
+#else
+#define FULL_VERSION "v" PACKAGE_VERSION " (eAthena)"
+#endif
+#else
+#define FULL_VERSION "Unknown Version"
+#endif
+
#ifndef PKG_DATADIR
#define PKG_DATADIR ""
#endif
@@ -128,10 +138,4 @@ extern char n_server, n_character;
extern unsigned char state;
extern std::string errorMessage;
-namespace Main {
-
-extern const std::string version;
-
-}
-
#endif