diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 22:20:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:17 +0300 |
commit | 576b7dca4676ba2c1ea63afb6bbc96fd11183048 (patch) | |
tree | 5eef4087911e0e74ebcfb4d2026b811f0256cc71 /src/gui | |
parent | c97f245c597ebe8f488e72c435960dbee9bf66c6 (diff) | |
download | manaverse-576b7dca4676ba2c1ea63afb6bbc96fd11183048.tar.gz manaverse-576b7dca4676ba2c1ea63afb6bbc96fd11183048.tar.bz2 manaverse-576b7dca4676ba2c1ea63afb6bbc96fd11183048.tar.xz manaverse-576b7dca4676ba2c1ea63afb6bbc96fd11183048.zip |
improve dirs usage in Client.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/chatwindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/shopwindow.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 04c2a2d9a..d31278e51 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -1471,7 +1471,7 @@ void ChatWindow::battleChatLog(const std::string &line, Own own, void ChatWindow::initTradeFilter() { - const std::string tradeListName = Client::getServerConfigDirectory() + const std::string tradeListName = client->getServerConfigDirectory() + "/tradefilter.txt"; std::ifstream tradeFile; @@ -1621,7 +1621,7 @@ void ChatWindow::loadCustomList() std::ifstream listFile; struct stat statbuf; - std::string listName = Client::getServerConfigDirectory() + std::string listName = client->getServerConfigDirectory() + "/customwords.txt"; if (!stat(listName.c_str(), &statbuf) && S_ISREG(statbuf.st_mode)) diff --git a/src/gui/shopwindow.cpp b/src/gui/shopwindow.cpp index db360fd33..04b994b7f 100644 --- a/src/gui/shopwindow.cpp +++ b/src/gui/shopwindow.cpp @@ -366,7 +366,7 @@ void ShopWindow::loadList() mBuyShopItems->clear(); mSellShopItems->clear(); - const std::string shopListName = Client::getServerConfigDirectory() + const std::string shopListName = client->getServerConfigDirectory() + "/shoplist.txt"; if (!stat(shopListName.c_str(), &statbuf) && S_ISREG(statbuf.st_mode)) @@ -416,7 +416,7 @@ void ShopWindow::saveList() const return; std::ofstream shopFile; - const std::string shopListName = Client::getServerConfigDirectory() + const std::string shopListName = client->getServerConfigDirectory() + "/shoplist.txt"; std::map<int, ShopItem*> mapItems; |