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
2014-04-13 23:22:17 +02:00
parent ee4c464305
commit a53ecd7da3
8 changed files with 58 additions and 13 deletions
+5 -5
View File
@@ -134,6 +134,11 @@ bool FixPathCase(std::string& basePath, std::string &path, FixPathCaseBehavior b
#endif
DirectoryFileSystem::DirectoryFileSystem(IHandleAllocator *_hAlloc, std::string _basePath, int _flags) : basePath(_basePath), flags(_flags) {
File::CreateFullPath(basePath);
hAlloc = _hAlloc;
}
std::string DirectoryFileHandle::GetLocalPath(std::string& basePath, std::string localpath)
{
if (localpath.empty())
@@ -326,11 +331,6 @@ void DirectoryFileHandle::Close()
#endif
}
DirectoryFileSystem::DirectoryFileSystem(IHandleAllocator *_hAlloc, std::string _basePath) : basePath(_basePath) {
File::CreateFullPath(basePath);
hAlloc = _hAlloc;
}
void DirectoryFileSystem::CloseAll() {
for (auto iter = entries.begin(); iter != entries.end(); ++iter) {
iter->second.hFile.Close();