diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-30 04:17:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-30 04:17:21 +0300 |
commit | b20b9dced23166491f7ae07ec1658c813b74c5ca (patch) | |
tree | 6a564216a632d42af11d59a4cf2a83d3b392de07 /src/fs/virtfs | |
parent | cdbe316833b8ed9d60f5b8dd648fc4f017f9079a (diff) | |
download | manaverse-b20b9dced23166491f7ae07ec1658c813b74c5ca.tar.gz manaverse-b20b9dced23166491f7ae07ec1658c813b74c5ca.tar.bz2 manaverse-b20b9dced23166491f7ae07ec1658c813b74c5ca.tar.xz manaverse-b20b9dced23166491f7ae07ec1658c813b74c5ca.zip |
Improve VirtFsZip::rwops_write.
Diffstat (limited to 'src/fs/virtfs')
-rw-r--r-- | src/fs/virtfs/virtfsziprwops.cpp | 22 |
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) |