diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-14 22:41:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-14 22:41:07 +0300 |
commit | 56d6454ba617d1dcddbbaa21e2066a7db0caee75 (patch) | |
tree | 5012e55f393db2d62b40eb64142fa4317b16c571 /src/gui/windows | |
parent | bdec92381ef60cd027292ed63e254e8de70028d9 (diff) | |
download | manaplus-56d6454ba617d1dcddbbaa21e2066a7db0caee75.tar.gz manaplus-56d6454ba617d1dcddbbaa21e2066a7db0caee75.tar.bz2 manaplus-56d6454ba617d1dcddbbaa21e2066a7db0caee75.tar.xz manaplus-56d6454ba617d1dcddbbaa21e2066a7db0caee75.zip |
Move some virtfs replated functions from files.cpp into virtfstools.cpp
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/helpwindow.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index e94d39dbe..094faea6d 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -71,7 +71,7 @@ #include "utils/copynpaste.h" #include "utils/delete2.h" -#include "utils/files.h" +#include "utils/virtfstools.h" #include <sys/stat.h> @@ -227,7 +227,7 @@ void ChatWindow::postInit() void ChatWindow::loadCommandsFile(const std::string &name) { StringVect list; - Files::loadTextFile(name, list); + VirtFs::loadTextFile(name, list); StringVectCIter it = list.begin(); const StringVectCIter it_end = list.end(); diff --git a/src/gui/windows/helpwindow.cpp b/src/gui/windows/helpwindow.cpp index 62c341ac3..e1ba2de30 100644 --- a/src/gui/windows/helpwindow.cpp +++ b/src/gui/windows/helpwindow.cpp @@ -38,9 +38,9 @@ #include "gui/widgets/scrollarea.h" #include "utils/gettext.h" -#include "utils/files.h" #include "utils/paths.h" #include "utils/process.h" +#include "utils/virtfstools.h" #include "utils/translation/podict.h" #include "utils/translation/translationmanager.h" @@ -161,11 +161,11 @@ void HelpWindow::loadTags() helpPath = paths.getStringValue("tags"); StringVect filesVect; - Files::getFilesInDir(helpPath, filesVect, ".idx"); + VirtFs::getFilesInDir(helpPath, filesVect, ".idx"); FOR_EACH (StringVectCIter, itVect, filesVect) { StringVect lines; - Files::loadTextFile(*itVect, lines); + VirtFs::loadTextFile(*itVect, lines); FOR_EACH (StringVectCIter, it, lines) { const std::string &str = *it; |