summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);