summaryrefslogtreecommitdiff
path: root/src/integrity_unittest.cc
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/integrity_unittest.cc
parent5e7866bd7cc3bf850d9ba3e636d8eca88ac797c7 (diff)
downloadmv-6c9c56b70db43f4100863d312835fce763698008.tar.gz
mv-6c9c56b70db43f4100863d312835fce763698008.tar.bz2
mv-6c9c56b70db43f4100863d312835fce763698008.tar.xz
mv-6c9c56b70db43f4100863d312835fce763698008.zip
Rename physfstools into virtfs.
Diffstat (limited to 'src/integrity_unittest.cc')
-rw-r--r--src/integrity_unittest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/integrity_unittest.cc b/src/integrity_unittest.cc
index e3e2a29cb..86317dc40 100644
--- a/src/integrity_unittest.cc
+++ b/src/integrity_unittest.cc
@@ -79,7 +79,7 @@ static bool compareBuffers(const unsigned char *const buf2)
bool isCorrect(true);
int sz = 0;
unsigned char *buf1 = static_cast<unsigned char*>(
- PhysFs::loadFile("hide.png", sz));
+ VirtFs::loadFile("hide.png", sz));
REQUIRE(buf1 != nullptr);
REQUIRE(sz == 368);
for (int f = 0; f < sz; f ++)
@@ -242,7 +242,7 @@ TEST_CASE("integrity tests", "integrity")
SDL_RWops *const rw = PHYSFSRWOPS_openRead(name1);
if (!rw)
- logger->log("Physfs error: %s", PhysFs::getLastError());
+ logger->log("Physfs error: %s", VirtFs::getLastError());
resourceManager->removeFromSearchPath("data/test/test.zip");
resourceManager->removeFromSearchPath("../data/test/test.zip");
REQUIRE(rw != nullptr);
@@ -405,7 +405,7 @@ TEST_CASE("integrity tests", "integrity")
SDL_RWops *const rw = PHYSFSRWOPS_openRead(name1);
if (!rw)
- logger->log("Physfs error: %s", PhysFs::getLastError());
+ logger->log("Physfs error: %s", VirtFs::getLastError());
REQUIRE(rw != nullptr);
int64_t seek = SDL_RWseek(rw, 0, RW_SEEK_END);
if (seek == -1)
@@ -440,7 +440,7 @@ TEST_CASE("integrity tests", "integrity")
SDL_RWops *const rw = PHYSFSRWOPS_openRead(name1);
if (!rw)
- logger->log("Physfs error: %s", PhysFs::getLastError());
+ logger->log("Physfs error: %s", VirtFs::getLastError());
REQUIRE(rw != nullptr);
if (IMG_isPNG(rw) == false)
{
@@ -462,7 +462,7 @@ TEST_CASE("integrity tests", "integrity")
SDL_RWops *const rw = PHYSFSRWOPS_openRead(name1);
if (!rw)
- logger->log("Physfs error: %s", PhysFs::getLastError());
+ logger->log("Physfs error: %s", VirtFs::getLastError());
REQUIRE(rw != nullptr);
Resource *const res = imageHelper->load(rw);
resourceManager->removeFromSearchPath("data/test/test.zip");
@@ -487,5 +487,5 @@ TEST_CASE("integrity tests", "integrity")
delete client;
client = nullptr;
-// PhysFs::deinit();
+// VirtFs::deinit();
}