diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
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) { |