summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-30 04:17:21 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-30 04:17:21 +0300
commitb20b9dced23166491f7ae07ec1658c813b74c5ca (patch)
tree6a564216a632d42af11d59a4cf2a83d3b392de07 /src
parentcdbe316833b8ed9d60f5b8dd648fc4f017f9079a (diff)
downloadmanaverse-b20b9dced23166491f7ae07ec1658c813b74c5ca.tar.gz
manaverse-b20b9dced23166491f7ae07ec1658c813b74c5ca.tar.bz2
manaverse-b20b9dced23166491f7ae07ec1658c813b74c5ca.tar.xz
manaverse-b20b9dced23166491f7ae07ec1658c813b74c5ca.zip
Improve VirtFsZip::rwops_write.
Diffstat (limited to 'src')
-rw-r--r--src/fs/virtfs/virtfsziprwops.cpp22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/fs/virtfs/virtfsziprwops.cpp b/src/fs/virtfs/virtfsziprwops.cpp
index 90f2a98db..31d7331c0 100644
--- a/src/fs/virtfs/virtfsziprwops.cpp
+++ b/src/fs/virtfs/virtfsziprwops.cpp
@@ -115,24 +115,12 @@ namespace VirtFsZip
return CAST_S32(rc);
}
- RWOPSSIZE rwops_write(SDL_RWops *const rw,
- const void *const ptr,
- const RWOPSSIZE size,
- const RWOPSSIZE num)
+ RWOPSSIZE rwops_write(SDL_RWops *const rw A_UNUSED,
+ const void *const ptr A_UNUSED,
+ const RWOPSSIZE size A_UNUSED,
+ const RWOPSSIZE num A_UNUSED)
{
- if (!rw)
- return 0;
- VirtFile *const handle = static_cast<VirtFile *const>(
- rw->hidden.unknown.data1);
- const int64_t rc = VirtFs::write(handle, ptr,
- CAST_U32(size),
- CAST_U32(num));
- if (rc != static_cast<int64_t>(num))
- {
- logger->assertLog("VirtFs::rwops_seek: write error.");
- }
-
- return CAST_S32(rc);
+ return 0;
}
int rwops_close(SDL_RWops *const rw)