summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfszip.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-29 23:58:34 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-29 23:58:34 +0300
commit7c377321ca62168658499f9753b9475a276d4506 (patch)
tree922c48d550afc3486987a62ec8df2fa47aec5c6c /src/fs/virtfs/virtfszip.cpp
parent11b1979a4dd43ff9b6788a8c95eec945ad5fde5a (diff)
downloadplus-7c377321ca62168658499f9753b9475a276d4506.tar.gz
plus-7c377321ca62168658499f9753b9475a276d4506.tar.bz2
plus-7c377321ca62168658499f9753b9475a276d4506.tar.xz
plus-7c377321ca62168658499f9753b9475a276d4506.zip
Move rwops functions into virtfsdir and virtfszip without optimisations.
Diffstat (limited to 'src/fs/virtfs/virtfszip.cpp')
-rw-r--r--src/fs/virtfs/virtfszip.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fs/virtfs/virtfszip.cpp b/src/fs/virtfs/virtfszip.cpp
index d344a4c64..8999cb54c 100644
--- a/src/fs/virtfs/virtfszip.cpp
+++ b/src/fs/virtfs/virtfszip.cpp
@@ -22,6 +22,7 @@
#include "fs/virtfs/virtfile.h"
#include "fs/virtfs/virtfsfuncs.h"
+#include "fs/virtfs/virtfsziprwops.h"
#include "fs/virtfs/virtlist.h"
#include "fs/virtfs/virtzipentry.h"
#include "fs/virtfs/zip.h"
@@ -72,6 +73,13 @@ namespace VirtFsZip
ptr->openWrite = &VirtFsZip::openWrite;
ptr->openAppend = &VirtFsZip::openAppend;
ptr->loadFile = &VirtFsZip::loadFile;
+ ptr->rwops_seek = &VirtFsZip::rwops_seek;
+ ptr->rwops_read = &VirtFsZip::rwops_read;
+ ptr->rwops_write = &VirtFsZip::rwops_write;
+ ptr->rwops_close = &VirtFsZip::rwops_close;
+#ifdef USE_SDL2
+ ptr->rwops_size = &VirtFsZip::rwops_size;
+#endif // USE_SDL2
}
bool getRealDir(VirtFsEntry *restrict const entry,