diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-29 12:56:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-29 12:56:16 +0300 |
commit | 1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f (patch) | |
tree | 3eea380919dae735fdbeacff314edf1ad06d26ab /src/commands.cpp | |
parent | 0b7ef18ac3c7fb4e3717f6311d4e21a31ff440d5 (diff) | |
download | manaplus-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.tar.gz manaplus-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.tar.bz2 manaplus-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.tar.xz manaplus-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.zip |
Move many variables from client into settings.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 711806021..46efeffbd 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -31,6 +31,7 @@ #include "guildmanager.h" #include "main.h" #include "party.h" +#include "settings.h" #include "being/localplayer.h" #include "being/playerrelations.h" @@ -869,13 +870,13 @@ impHandler0(dirs) return; debugChatTab->chatLog("config directory: " - + client->getConfigDirectory()); + + settings.configDir); debugChatTab->chatLog("logs directory: " - + client->getLocalDataDirectory()); + + settings.localDataDir); debugChatTab->chatLog("screenshots directory: " - + client->getScreenshotDirectory()); + + settings.screenshotDir); debugChatTab->chatLog("temp directory: " - + client->getTempDirectory()); + + settings.tempDir); } impHandler2(info) @@ -1371,7 +1372,7 @@ impHandler2(uploadServerConfig) impHandler2(uploadLog) { uploadFile(_("Uploaded log into:"), - client->getLogFileName(), + settings.logFileName, "?txt", tab); } |