Save/restore local file handles and seek positions

This commit is contained in:
Kentucky Compass
2013-12-28 23:43:02 -08:00
parent ff10d0b0f2
commit db77b52caa
2 changed files with 59 additions and 4 deletions
+4
View File
@@ -86,6 +86,8 @@ public:
DirectoryFileSystem(IHandleAllocator *_hAlloc, std::string _basePath);
~DirectoryFileSystem();
void CloseAll();
void DoState(PointerWrap &p);
std::vector<PSPFileInfo> GetDirListing(std::string path);
u32 OpenFile(std::string filename, FileAccess access, const char *devicename=NULL);
@@ -107,6 +109,8 @@ public:
private:
struct OpenFileEntry {
DirectoryFileHandle hFile;
std::string guestFilename;
FileAccess access;
};
typedef std::map<u32, OpenFileEntry> EntryMap;