summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 9be7d0df..9fa61364 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -216,18 +216,17 @@ Client::Client(const Options &options):
}
initHomeDir();
+ initConfiguration();
// Configure logger
logger->setLogFile(mLocalDataDir + std::string("/mana.log"));
+ logger->setLogToStandardOut(config.getValue("logToStandardOut", 0));
// Log the mana version
logger->log("Mana %s", FULL_VERSION);
- initConfiguration();
initScreenshotDir();
- logger->setLogToStandardOut(config.getValue("logToStandardOut", 0));
-
// Initialize SDL
logger->log("Initializing SDL...");
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0)
@@ -1018,7 +1017,6 @@ void Client::initHomeDir()
void Client::initConfiguration()
{
// Fill configuration with defaults
- logger->log("Initializing configuration...");
std::string defaultHost = branding.getValue("defaultServer",
"server.themanaworld.org");
int defaultPort = (int) branding.getValue("defaultPort", DEFAULT_PORT);