summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-28 01:40:34 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-28 01:40:34 +0300
commit3fba07dba53ae41d915ba4c3304e31f0b44893fa (patch)
treeb35b7c00e3513146a89f9f0dcf2fba0de3a459b2 /src/fs
parentd146dc4e25ad62f925fb0870089b63f5d51e98da (diff)
downloadmanaverse-3fba07dba53ae41d915ba4c3304e31f0b44893fa.tar.gz
manaverse-3fba07dba53ae41d915ba4c3304e31f0b44893fa.tar.bz2
manaverse-3fba07dba53ae41d915ba4c3304e31f0b44893fa.tar.xz
manaverse-3fba07dba53ae41d915ba4c3304e31f0b44893fa.zip
Add constructor and final into virtfsfuncs.
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/virtfsfuncs.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/fs/virtfsfuncs.h b/src/fs/virtfsfuncs.h
index 1b17ac5db..8e0629dcf 100644
--- a/src/fs/virtfsfuncs.h
+++ b/src/fs/virtfsfuncs.h
@@ -29,8 +29,19 @@
struct VirtFile;
-struct VirtFsFuncs
+struct VirtFsFuncs final
{
+ VirtFsFuncs() :
+ close(nullptr),
+ read(nullptr),
+ write(nullptr),
+ fileLength(nullptr),
+ tell(nullptr),
+ seek(nullptr),
+ eof(nullptr)
+ {
+ }
+
int (*close) (VirtFile *restrict const file);
int64_t (*read) (VirtFile *restrict const file,
void *restrict const buffer,