diff options
author | Bjørn <bjorn@horst-dieter.(none)> | 2009-04-12 19:04:20 +0200 |
---|---|---|
committer | Bjørn <bjorn@horst-dieter.(none)> | 2009-04-12 19:06:38 +0200 |
commit | 9f5b89189f00c959882f86067634a512e6970614 (patch) | |
tree | 8964803d49528d35585f1fb26f8f22e3c7353a52 /src/main.h | |
parent | a6998fbdfaf84aa1920564d97e3421ed28c9a893 (diff) | |
download | mana-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.h | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -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 |