summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Subv2018-03-19 22:59:38 -0500
committerGravatar Subv2018-03-19 22:59:38 -0500
commite1d7b9fc2c8780552b40e8415104b4205efe2de7 (patch)
tree957c1e7014b3963f431a127b9ec2cd74418c54d8 /src
parentFS: Updated the Directory Entry structure to match the Switch. (diff)
downloadyuzu-e1d7b9fc2c8780552b40e8415104b4205efe2de7.tar.gz
yuzu-e1d7b9fc2c8780552b40e8415104b4205efe2de7.tar.xz
yuzu-e1d7b9fc2c8780552b40e8415104b4205efe2de7.zip
FS: Implement DiskFileSystem::GetEntryType for existing files/directories.
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
123 return ERROR_PATH_NOT_FOUND; 123 return ERROR_PATH_NOT_FOUND;
124 } 124 }
125 125
126 // TODO(Subv): Find out the EntryType values 126 if (FileUtil::IsDirectory(full_path))
127 UNIMPLEMENTED_MSG("Unimplemented GetEntryType"); 127 return MakeResult(EntryType::Directory);
128
129 return MakeResult(EntryType::File);
128} 130}
129 131
130ResultVal<size_t> Disk_Storage::Read(const u64 offset, const size_t length, u8* buffer) const { 132ResultVal<size_t> Disk_Storage::Read(const u64 offset, const size_t length, u8* buffer) const {