summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-06-13 13:22:52 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-06-13 13:22:52 +0000
commitff1840e8c5ae1eb605a776434a819364bc9b513d (patch)
tree456fe85ec61e09cd5a6510b14db66c2603da8d2d /src
parent6051da4619fd79ef8cf7f206ccffbb52d16cf9af (diff)
downloadmana-ff1840e8c5ae1eb605a776434a819364bc9b513d.tar.gz
mana-ff1840e8c5ae1eb605a776434a819364bc9b513d.tar.bz2
mana-ff1840e8c5ae1eb605a776434a819364bc9b513d.tar.xz
mana-ff1840e8c5ae1eb605a776434a819364bc9b513d.zip
Added logging of version number.
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9c4a5cdf..1a6aea4c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -150,10 +150,16 @@ void init_engine(const Options &options)
<< std::endl;
exit(1);
}
-
+
// Set log file
logger->setLogFile(homeDir + std::string("/tmw.log"));
+ #ifdef PACKAGE_VERSION
+ logger->log("Starting The Mana World Version %s", PACKAGE_VERSION);
+ #else
+ logger->log("Starting The Mana World - Version not defined");
+ #endif
+
// Initialize SDL
logger->log("Initializing SDL...");
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0) {