summaryrefslogtreecommitdiff
path: root/src/utils/translation
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-10 20:16:03 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-10 20:47:24 +0300
commit6c9c56b70db43f4100863d312835fce763698008 (patch)
tree4a182019f18677c1b71202a79d8f4faceebe05c9 /src/utils/translation
parent5e7866bd7cc3bf850d9ba3e636d8eca88ac797c7 (diff)
downloadmanaverse-6c9c56b70db43f4100863d312835fce763698008.tar.gz
manaverse-6c9c56b70db43f4100863d312835fce763698008.tar.bz2
manaverse-6c9c56b70db43f4100863d312835fce763698008.tar.xz
manaverse-6c9c56b70db43f4100863d312835fce763698008.zip
Rename physfstools into virtfs.
Diffstat (limited to 'src/utils/translation')
-rw-r--r--src/utils/translation/poparser.cpp6
-rw-r--r--src/utils/translation/poparser_unittest.cc4
-rw-r--r--src/utils/translation/translationmanager.cpp4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/utils/translation/poparser.cpp b/src/utils/translation/poparser.cpp
index 704ce873d..2f591f2e4 100644
--- a/src/utils/translation/poparser.cpp
+++ b/src/utils/translation/poparser.cpp
@@ -20,7 +20,7 @@
#include "utils/translation/poparser.h"
-#include "utils/physfstools.h"
+#include "utils/virtfs.h"
#include "utils/stringutils.h"
#include "utils/translation/podict.h"
@@ -45,7 +45,7 @@ PoParser::PoParser() :
void PoParser::openFile(const std::string &name)
{
int size;
- char *buf = static_cast<char*>(PhysFs::loadFile(getFileName(name), size));
+ char *buf = static_cast<char*>(VirtFs::loadFile(getFileName(name), size));
if (buf)
{
@@ -261,7 +261,7 @@ PoDict *PoParser::getEmptyDict()
bool PoParser::checkLang(const std::string &lang)
{
// check is po file exists
- return PhysFs::exists(getFileName(lang).c_str());
+ return VirtFs::exists(getFileName(lang).c_str());
}
std::string PoParser::getFileName(const std::string &lang)
diff --git a/src/utils/translation/poparser_unittest.cc b/src/utils/translation/poparser_unittest.cc
index e54d3dc9a..b59b1e098 100644
--- a/src/utils/translation/poparser_unittest.cc
+++ b/src/utils/translation/poparser_unittest.cc
@@ -29,7 +29,7 @@
#include "utils/delete2.h"
#include "utils/env.h"
-#include "utils/physfstools.h"
+#include "utils/virtfs.h"
#include "utils/translation/podict.h"
#include "utils/translation/poparser.h"
@@ -122,5 +122,5 @@ TEST_CASE("PoParser tests", "PoParser")
delete dict;
}
delete2(client);
-// PhysFs::deinit();
+// VirtFs::deinit();
}
diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp
index d7857a608..24342e8a1 100644
--- a/src/utils/translation/translationmanager.cpp
+++ b/src/utils/translation/translationmanager.cpp
@@ -21,7 +21,7 @@
#include "utils/translation/translationmanager.h"
#include "utils/delete2.h"
-#include "utils/physfstools.h"
+#include "utils/virtfs.h"
#include "utils/stringutils.h"
#include "utils/translation/podict.h"
@@ -93,7 +93,7 @@ bool TranslationManager::translateFile(const std::string &fileName,
int contentsLength;
char *fileContents = static_cast<char*>(
- PhysFs::loadFile(fileName, contentsLength));
+ VirtFs::loadFile(fileName, contentsLength));
if (!fileContents)
{