From 97d9ed131ae4fad7d54274cf5b74cf587b391bad Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Mar 2017 01:49:04 +0300 Subject: Impliment loadFile in each virtual file system. --- src/fs/virtfs/virtfsfuncs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/fs/virtfs/virtfsfuncs.h') diff --git a/src/fs/virtfs/virtfsfuncs.h b/src/fs/virtfs/virtfsfuncs.h index 46bcd86ff..05b74cc7d 100644 --- a/src/fs/virtfs/virtfsfuncs.h +++ b/src/fs/virtfs/virtfsfuncs.h @@ -44,7 +44,8 @@ struct VirtFsFuncs final openRead(nullptr), openWrite(nullptr), openAppend(nullptr), - eof(nullptr) + eof(nullptr), + loadFile(nullptr) { } @@ -83,6 +84,9 @@ struct VirtFsFuncs final VirtFile *(*openAppend) (VirtFsEntry *restrict const entry, const std::string &filename); int (*eof) (VirtFile *restrict const file); + char *(*loadFile) (VirtFsEntry *restrict const entry, + const std::string &restrict fileName, + int &restrict fileSize); }; #endif // UTILS_VIRTFSFUNCS_H -- cgit v1.2.3-70-g09d2