summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfsdir.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/virtfsdir.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/virtfsdir.cpp')
-rw-r--r--src/fs/virtfs/virtfsdir.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fs/virtfs/virtfsdir.cpp b/src/fs/virtfs/virtfsdir.cpp
index b6f197ae3..c3c2cad73 100644
--- a/src/fs/virtfs/virtfsdir.cpp
+++ b/src/fs/virtfs/virtfsdir.cpp
@@ -26,6 +26,7 @@
#include "fs/virtfs/virtdirentry.h"
#include "fs/virtfs/virtfile.h"
+#include "fs/virtfs/virtfsdirrwops.h"
#include "fs/virtfs/virtfsfuncs.h"
#include "fs/virtfs/virtlist.h"
@@ -136,6 +137,13 @@ namespace VirtFsDir
ptr->openWrite = &VirtFsDir::openWrite;
ptr->openAppend = &VirtFsDir::openAppend;
ptr->loadFile = &VirtFsDir::loadFile;
+ ptr->rwops_seek = &VirtFsDir::rwops_seek;
+ ptr->rwops_read = &VirtFsDir::rwops_read;
+ ptr->rwops_write = &VirtFsDir::rwops_write;
+ ptr->rwops_close = &VirtFsDir::rwops_close;
+#ifdef USE_SDL2
+ ptr->rwops_size = &VirtFsDir::rwops_size;
+#endif // USE_SDL2
}
VirtFsFuncs *getFuncs()