diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-10-24 18:59:23 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-10-24 18:59:23 +0000 |
commit | 50f0a7e7480e5c0fb78e5a4dbe1c27396f2c4020 (patch) | |
tree | d3b1708aa9a9f605ecb8db0a06d06c2dcdc09aff /src | |
parent | d802c575d3184c2ebbb755128681e14422f3f1b7 (diff) | |
download | mana-client-50f0a7e7480e5c0fb78e5a4dbe1c27396f2c4020.tar.gz mana-client-50f0a7e7480e5c0fb78e5a4dbe1c27396f2c4020.tar.bz2 mana-client-50f0a7e7480e5c0fb78e5a4dbe1c27396f2c4020.tar.xz mana-client-50f0a7e7480e5c0fb78e5a4dbe1c27396f2c4020.zip |
Corrections to my previous commit for tmw for windows users.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index f2dcbf9d..cd425bbd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -23,9 +23,6 @@ #include "main.h" -// For version support -#include "../config.h" - #include <getopt.h> #include <iostream> #include <physfs.h> @@ -39,6 +36,7 @@ #ifdef __USE_UNIX98 #include <cerrno> #include <sys/stat.h> +#include "../config.h" #endif #include "configuration.h" @@ -382,7 +380,9 @@ void parseOptions(int argc, char *argv[], Options &options) /** Main */ int main(int argc, char *argv[]) { +#ifdef __USE_UNIX98 std::cout << "The Mana World v" << PACKAGE_VERSION << std::endl; +#endif logger = new Logger(); Options options; @@ -456,8 +456,10 @@ int main(int argc, char *argv[]) } graphics->drawImage(login_wallpaper, 0, 0); +#ifdef __USE_UNIX98 graphics->setFont(gui->getFont()); graphics->drawText(PACKAGE_VERSION, 0, 0); +#endif gui->draw(); graphics->updateScreen(); |