Start save stating the filesystem state.

Plus minor fixes and at least an attempt to make states the same
on both 32 and 64 bit.
This commit is contained in:
Unknown W. Brackets committed 2012-12-28 13:55:27 -08:00
1 parent e3e6f81dfa
commit 4b39e39455
15 files changed
+125 -10

No files matched your search

+4 -1
View File
@@ -42,8 +42,9 @@ class ISOFileSystem : public IFileSystem
u32 startingPosition;
s64 size;
bool isDirectory;
bool isBlockSectorMode; // "umd:" mode: all sizes and offsets are in 2048 byte chunks
bool isBlockSectorMode; // "umd:" mode: all sizes and offsets are in 2048 byte chunks
TreeEntry *parent;
std::vector<TreeEntry*> children;
};
@@ -67,10 +68,12 @@ class ISOFileSystem : public IFileSystem
void ReadDirectory(u32 startsector, u32 dirsize, TreeEntry *root);
TreeEntry *GetFromPath(std::string path);
std::string EntryFullPath(TreeEntry *e);
public:
ISOFileSystem(IHandleAllocator *_hAlloc, BlockDevice *_blockDevice);
~ISOFileSystem();
void DoState(PointerWrap &p);
std::vector<PSPFileInfo> GetDirListing(std::string path);
u32 OpenFile(std::string filename, FileAccess access);
void CloseFile(u32 handle);