From 9f5b89189f00c959882f86067634a512e6970614 Mon Sep 17 00:00:00 2001 From: Bjørn Date: Sun, 12 Apr 2009 19:04:20 +0200 Subject: Moved client version string creation to preprocessor --- src/main.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/main.h') 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 -- cgit v1.2.3-60-g2f50