summaryrefslogtreecommitdiff
path: root/src/fs/virtfsrwops.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/virtfsrwops.cpp')
-rw-r--r--src/fs/virtfsrwops.cpp21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/fs/virtfsrwops.cpp b/src/fs/virtfsrwops.cpp
index adb6fe0ea..8b1ccd4cc 100644
--- a/src/fs/virtfsrwops.cpp
+++ b/src/fs/virtfsrwops.cpp
@@ -154,8 +154,7 @@ static RWOPSINT virtfsrwops_seek(SDL_RWops *const rw,
if (current == -1)
{
logger->assertLog(
- "virtfsrwops_seek: Can't find position in file: %s",
- VirtFs::getLastError());
+ "virtfsrwops_seek: Can't find position in file.");
return -1;
} /* if */
@@ -177,8 +176,7 @@ static RWOPSINT virtfsrwops_seek(SDL_RWops *const rw,
const int64_t len = VirtFs::fileLength(handle);
if (len == -1)
{
- logger->assertLog("virtfsrwops_seek:Can't find end of file: %s",
- VirtFs::getLastError());
+ logger->assertLog("virtfsrwops_seek:Can't find end of file.");
return -1;
} /* if */
@@ -207,8 +205,7 @@ static RWOPSINT virtfsrwops_seek(SDL_RWops *const rw,
if (!VirtFs::seek(handle, static_cast<uint64_t>(pos)))
{
- logger->assertLog("virtfsrwops_seek: seek error: %s",
- VirtFs::getLastError());
+ logger->assertLog("virtfsrwops_seek: seek error.");
return -1;
} /* if */
@@ -231,8 +228,7 @@ static RWOPSSIZE virtfsrwops_read(SDL_RWops *const rw,
{
if (!VirtFs::eof(handle)) /* not EOF? Must be an error. */
{
- logger->assertLog("virtfsrwops_seek: read error: %s",
- VirtFs::getLastError());
+ logger->assertLog("virtfsrwops_seek: read error.");
}
} /* if */
@@ -253,8 +249,7 @@ static RWOPSSIZE virtfsrwops_write(SDL_RWops *const rw,
CAST_U32(num));
if (rc != static_cast<int64_t>(num))
{
- logger->assertLog("virtfsrwops_seek: write error: %s",
- VirtFs::getLastError());
+ logger->assertLog("virtfsrwops_seek: write error.");
}
return CAST_S32(rc);
@@ -268,8 +263,7 @@ static int virtfsrwops_close(SDL_RWops *const rw)
rw->hidden.unknown.data1);
if (!VirtFs::close(handle))
{
- logger->assertLog("virtfsrwops_seek: close error: %s",
- VirtFs::getLastError());
+ logger->assertLog("virtfsrwops_seek: close error.");
return -1;
} /* if */
@@ -301,8 +295,7 @@ static SDL_RWops *create_rwops(VirtFile *const file)
if (!file)
{
- logger->assertLog("virtfsrwops_seek: create rwops error: %s",
- VirtFs::getLastError());
+ logger->assertLog("virtfsrwops_seek: create rwops error.");
}
else
{