summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/fsziprwops.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-22 02:01:14 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-22 02:01:14 +0300
commit7ca25eb87966f805265cd22086af8c113b7af822 (patch)
tree02ad3808750ee2ebd2a5ba566683cdf8b7147a3f /src/fs/virtfs/fsziprwops.cpp
parentd09b09bff620340464f2226e672c986dd85f085d (diff)
downloadplus-7ca25eb87966f805265cd22086af8c113b7af822.tar.gz
plus-7ca25eb87966f805265cd22086af8c113b7af822.tar.bz2
plus-7ca25eb87966f805265cd22086af8c113b7af822.tar.xz
plus-7ca25eb87966f805265cd22086af8c113b7af822.zip
Improve a bit fsziprwops.cpp.
Diffstat (limited to 'src/fs/virtfs/fsziprwops.cpp')
-rw-r--r--src/fs/virtfs/fsziprwops.cpp5
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);