From ff1840e8c5ae1eb605a776434a819364bc9b513d Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Wed, 13 Jun 2007 13:22:52 +0000 Subject: Added logging of version number. --- ChangeLog | 4 ++++ src/main.cpp | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index be9429b0..8e2a4a4c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-06-13 Philipp Sehmisch + + * src/main.cpp: Added logging of version number. + 2007-06-12 David Athay * src/net/playerhandler.cpp: Fixed bug with DEF_BONUS not updating 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) { -- cgit v1.2.3-70-g09d2