3
#include "base/basictypes.h"
4
#include "file/file_util.h"
5
// Basic virtual file system. Used to manage assets on Android, where we have to
6
// read them manually out of the APK zipfile, while being able to run on other
7
// platforms as well with the appropriate directory set-up.
11
void VFSRegister(const char *prefix, AssetReader *reader);
14
// Use delete [] to release the returned memory.
15
// Always allocates an extra zero byte at the end, so that it
16
// can be used for text like shader sources.
17
uint8_t *VFSReadFile(const char *filename, size_t *size);
18
bool VFSGetFileListing(const char *path, std::vector<FileInfo> *listing, const char *filter = 0);
19
bool VFSGetFileInfo(const char *filename, FileInfo *fileInfo);