mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-15 15:25:31 +00:00
FS: Implement DiskFileSystem::GetEntryType for existing files/directories.
This commit is contained in:
parent
a9ba2c2000
commit
e1d7b9fc2c
|
@ -123,8 +123,10 @@ ResultVal<FileSys::EntryType> Disk_FileSystem::GetEntryType(const std::string& p
|
||||||
return ERROR_PATH_NOT_FOUND;
|
return ERROR_PATH_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(Subv): Find out the EntryType values
|
if (FileUtil::IsDirectory(full_path))
|
||||||
UNIMPLEMENTED_MSG("Unimplemented GetEntryType");
|
return MakeResult(EntryType::Directory);
|
||||||
|
|
||||||
|
return MakeResult(EntryType::File);
|
||||||
}
|
}
|
||||||
|
|
||||||
ResultVal<size_t> Disk_Storage::Read(const u64 offset, const size_t length, u8* buffer) const {
|
ResultVal<size_t> Disk_Storage::Read(const u64 offset, const size_t length, u8* buffer) const {
|
||||||
|
|
Loading…
Reference in a new issue