diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-26 21:45:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-26 22:01:51 +0300 |
commit | 5889bd94d241b8454268804861a67c79315a7731 (patch) | |
tree | b37aaec28083110308fbbc5fa3a2c4bb07ce2ed7 /src/client.cpp | |
parent | bae784c3718b2d28bef80ef57f23c47cc4342c64 (diff) | |
download | manaplus-5889bd94d241b8454268804861a67c79315a7731.tar.gz manaplus-5889bd94d241b8454268804861a67c79315a7731.tar.bz2 manaplus-5889bd94d241b8454268804861a67c79315a7731.tar.xz manaplus-5889bd94d241b8454268804861a67c79315a7731.zip |
add chat command for uploading main config.xml
New chat command: /uploadconfig
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index 289b4df0b..13835c938 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -226,6 +226,7 @@ Client::Client(const Options &options) : mRootDir(), mServerName(), mOnlineListUrl(), + mLogFileName(), mCurrentServer(), mGame(nullptr), mCurrentDialog(nullptr), @@ -293,9 +294,10 @@ void Client::gameInit() // Configure logger if (!mOptions.logFileName.empty()) - logger->setLogFile(mOptions.logFileName); + mLogFileName = mOptions.logFileName; else - logger->setLogFile(mLocalDataDir + "/manaplus.log"); + mLogFileName = mLocalDataDir + "/manaplus.log"; + logger->setLogFile(mLogFileName); #ifdef USE_FUZZER Fuzzer::init(); |