summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-03-20 04:59:38 +0100
committerSubv <subv2112@gmail.com>2018-03-20 04:59:38 +0100
commite1d7b9fc2c8780552b40e8415104b4205efe2de7 (patch)
tree957c1e7014b3963f431a127b9ec2cd74418c54d8 /src
parentFS: Updated the Directory Entry structure to match the Switch. (diff)
downloadyuzu-e1d7b9fc2c8780552b40e8415104b4205efe2de7.tar
yuzu-e1d7b9fc2c8780552b40e8415104b4205efe2de7.tar.gz
yuzu-e1d7b9fc2c8780552b40e8415104b4205efe2de7.tar.bz2
yuzu-e1d7b9fc2c8780552b40e8415104b4205efe2de7.tar.lz
yuzu-e1d7b9fc2c8780552b40e8415104b4205efe2de7.tar.xz
yuzu-e1d7b9fc2c8780552b40e8415104b4205efe2de7.tar.zst
yuzu-e1d7b9fc2c8780552b40e8415104b4205efe2de7.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/disk_filesystem.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/disk_filesystem.cpp b/src/core/file_sys/disk_filesystem.cpp
index e2092b9df..e02b20faf 100644
--- a/src/core/file_sys/disk_filesystem.cpp
+++ b/src/core/file_sys/disk_filesystem.cpp
@@ -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 {