yuzu-emu
/
yuzu
Archived
1
0
Fork 0

FS: Implement DiskFileSystem::GetEntryType for existing files/directories.

This commit is contained in:
Subv 2018-03-19 22:59:38 -05:00
parent a9ba2c2000
commit e1d7b9fc2c
1 changed files with 4 additions and 2 deletions

View File

@ -123,8 +123,10 @@ ResultVal<FileSys::EntryType> Disk_FileSystem::GetEntryType(const std::string& p
return ERROR_PATH_NOT_FOUND;
}
// TODO(Subv): Find out the EntryType values
UNIMPLEMENTED_MSG("Unimplemented GetEntryType");
if (FileUtil::IsDirectory(full_path))
return MakeResult(EntryType::Directory);
return MakeResult(EntryType::File);
}
ResultVal<size_t> Disk_Storage::Read(const u64 offset, const size_t length, u8* buffer) const {