~ppsspp/ppsspp/ppsspp-1.2.2

« back to all changes in this revision

Viewing changes to ext/native/file/vfs.h

  • Committer: Sérgio Benjamim
  • Date: 2016-04-25 02:30:18 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20160425023018-wk3rd7nu30fejjzz
1.2.2 source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#pragma once
 
2
 
 
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.
 
8
 
 
9
class AssetReader;
 
10
 
 
11
void VFSRegister(const char *prefix, AssetReader *reader);
 
12
void VFSShutdown();
 
13
 
 
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);