~ppsspp/ppsspp/ppsspp_1.3.0

« back to all changes in this revision

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

  • Committer: Sérgio Benjamim
  • Date: 2017-01-02 00:12:05 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20170102001205-cxbta9za203nmjwm
1.3.0 source (from ppsspp_1.3.0-r160.p5.l1762.a165.t83~56~ubuntu16.04.1.tar.xz).

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);