mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing Let's also move net while we're at it. Move the ZIM/PNG loaders over to Common. Move the UI framework into Common iOS buildfix * Buildfix * Buildfixes * Apple buildfix * This typo again.. * UWP buildfix * Fix build of PPSSPPQt, such as it is (it's not in good condition...) * Guess what? Another buildfix.
21 lines
766 B
C++
21 lines
766 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "Common/File/DirListing.h"
|
|
|
|
// Basic virtual file system. Used to manage assets on Android, where we have to
|
|
// read them manually out of the APK zipfile, while being able to run on other
|
|
// platforms as well with the appropriate directory set-up.
|
|
|
|
class AssetReader;
|
|
|
|
void VFSRegister(const char *prefix, AssetReader *reader);
|
|
void VFSShutdown();
|
|
|
|
// Use delete [] to release the returned memory.
|
|
// Always allocates an extra zero byte at the end, so that it
|
|
// can be used for text like shader sources.
|
|
uint8_t *VFSReadFile(const char *filename, size_t *size);
|
|
bool VFSGetFileListing(const char *path, std::vector<FileInfo> *listing, const char *filter = 0);
|
|
bool VFSGetFileInfo(const char *filename, FileInfo *fileInfo);
|