summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-14 22:41:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-14 22:41:07 +0300
commit56d6454ba617d1dcddbbaa21e2066a7db0caee75 (patch)
tree5012e55f393db2d62b40eb64142fa4317b16c571 /src/resources/db
parentbdec92381ef60cd027292ed63e254e8de70028d9 (diff)
downloadmanaverse-56d6454ba617d1dcddbbaa21e2066a7db0caee75.tar.gz
manaverse-56d6454ba617d1dcddbbaa21e2066a7db0caee75.tar.bz2
manaverse-56d6454ba617d1dcddbbaa21e2066a7db0caee75.tar.xz
manaverse-56d6454ba617d1dcddbbaa21e2066a7db0caee75.zip
Move some virtfs replated functions from files.cpp into virtfstools.cpp
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/badgesdb.cpp8
-rw-r--r--src/resources/db/colordb.cpp2
-rw-r--r--src/resources/db/itemdb.cpp4
-rw-r--r--src/resources/db/palettedb.cpp4
4 files changed, 10 insertions, 8 deletions
diff --git a/src/resources/db/badgesdb.cpp b/src/resources/db/badgesdb.cpp
index 9e7a7fad4..031d78945 100644
--- a/src/resources/db/badgesdb.cpp
+++ b/src/resources/db/badgesdb.cpp
@@ -22,7 +22,7 @@
#include "configuration.h"
-#include "utils/files.h"
+#include "utils/virtfstools.h"
#include "utils/xmlutils.h"
#include "debug.h"
@@ -58,8 +58,10 @@ static void loadDB(const std::string &name, BadgesInfos &arr)
name, arr, SkipError_true);
StringVect listVect;
- Files::getFilesInDir(paths.getStringValue(
- "badgesPatchDir"), listVect, ".xml");
+ VirtFs::getFilesInDir(paths.getStringValue(
+ "badgesPatchDir"),
+ listVect,
+ ".xml");
FOR_EACH (StringVectCIter, itVect, listVect)
loadXmlFile(*itVect, name, arr, SkipError_true);
}
diff --git a/src/resources/db/colordb.cpp b/src/resources/db/colordb.cpp
index 0d268c78a..90e1436ac 100644
--- a/src/resources/db/colordb.cpp
+++ b/src/resources/db/colordb.cpp
@@ -53,7 +53,7 @@ void ColorDB::load()
colors,
SkipError_true);
StringVect list;
- Files::getFilesInDir(paths.getStringValue(
+ VirtFs::getFilesInDir(paths.getStringValue(
"hairColorPatchDir"), list, ".xml");
FOR_EACH (StringVectCIter, it2, list)
loadHair(*it2, colors, SkipError_true);
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 482ec005d..9ff9d78c6 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -42,8 +42,8 @@
#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "utils/dtor.h"
-#include "utils/files.h"
#include "utils/stringmap.h"
+#include "utils/virtfstools.h"
#include "debug.h"
@@ -202,7 +202,7 @@ void ItemDB::load()
SkipError_true);
StringVect list;
- Files::getFilesInDir(paths.getStringValue("itemsPatchDir"),
+ VirtFs::getFilesInDir(paths.getStringValue("itemsPatchDir"),
list,
".xml");
FOR_EACH (StringVectCIter, it, list)
diff --git a/src/resources/db/palettedb.cpp b/src/resources/db/palettedb.cpp
index 75d8be290..4c9c4cd76 100644
--- a/src/resources/db/palettedb.cpp
+++ b/src/resources/db/palettedb.cpp
@@ -23,7 +23,7 @@
#include "configuration.h"
#include "utils/checkutils.h"
-#include "utils/files.h"
+#include "utils/virtfstools.h"
#include "resources/dye/dyecolor.h"
@@ -47,7 +47,7 @@ void PaletteDB::loadPalette()
{
mLoaded = true;
StringVect lines;
- Files::loadTextFile(paths.getStringValue("palettesDir") +
+ VirtFs::loadTextFile(paths.getStringValue("palettesDir") +
paths.getStringValue("defaultPaletteFile"),
lines);
StringVectCIter it = lines.begin();