More elegant way of solving #5839 (d_private in sceIoDread)

We flag filesystems as being FAT32 instead of checking for "ms0:".
This commit is contained in:
Henrik Rydgard committed 2014-04-13 23:22:17 +02:00
1 parent ee4c464305
commit a53ecd7da3
8 files changed
+58 -13

No files matched your search

+3 -2
View File
@@ -86,7 +86,7 @@ struct DirectoryFileHandle
class DirectoryFileSystem : public IFileSystem {
public:
DirectoryFileSystem(IHandleAllocator *_hAlloc, std::string _basePath);
DirectoryFileSystem(IHandleAllocator *_hAlloc, std::string _basePath, int _flags = 0);
~DirectoryFileSystem();
void CloseAll();
@@ -108,6 +108,7 @@ public:
int RenameFile(const std::string &from, const std::string &to);
bool RemoveFile(const std::string &filename);
bool GetHostPath(const std::string &inpath, std::string &outpath);
int Flags() { return flags; }
private:
struct OpenFileEntry {
@@ -120,7 +121,7 @@ private:
EntryMap entries;
std::string basePath;
IHandleAllocator *hAlloc;
int flags;
// In case of Windows: Translate slashes, etc.
std::string GetLocalPath(std::string localpath);
};