diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-22 02:01:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-22 02:01:14 +0300 |
commit | 7ca25eb87966f805265cd22086af8c113b7af822 (patch) | |
tree | 02ad3808750ee2ebd2a5ba566683cdf8b7147a3f /src | |
parent | d09b09bff620340464f2226e672c986dd85f085d (diff) | |
download | manaverse-7ca25eb87966f805265cd22086af8c113b7af822.tar.gz manaverse-7ca25eb87966f805265cd22086af8c113b7af822.tar.bz2 manaverse-7ca25eb87966f805265cd22086af8c113b7af822.tar.xz manaverse-7ca25eb87966f805265cd22086af8c113b7af822.zip |
Improve a bit fsziprwops.cpp.
Diffstat (limited to 'src')
-rw-r--r-- | src/fs/virtfs/fsziprwops.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fs/virtfs/fsziprwops.cpp b/src/fs/virtfs/fsziprwops.cpp index d994f6b79..b4917a423 100644 --- a/src/fs/virtfs/fsziprwops.cpp +++ b/src/fs/virtfs/fsziprwops.cpp @@ -24,6 +24,7 @@ #include "fs/virtfs/file.h" #include "fs/virtfs/fs.h" +#include "fs/virtfs/fsfuncs.h" #include <SDL_rwops.h> @@ -112,7 +113,9 @@ namespace FsZip return 0; File *const handle = static_cast<File *const>( rw->hidden.unknown.data1); - const int64_t rc = VirtFs::read(handle, ptr, + + const int64_t rc = handle->funcs->read(handle, + ptr, CAST_U32(size), CAST_U32(maxnum)); return CAST_S32(rc); |