summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-19 20:11:09 +0200
committerSubv <subv2112@gmail.com>2018-07-19 20:11:09 +0200
commite5c916a27c18d2ca09be322e20adc7731bfa73ab (patch)
tree96bccff005c662b72a76e65dfee0d86ab7bc931b /src
parentMerge pull request #701 from lioncash/moving (diff)
downloadyuzu-e5c916a27c18d2ca09be322e20adc7731bfa73ab.tar
yuzu-e5c916a27c18d2ca09be322e20adc7731bfa73ab.tar.gz
yuzu-e5c916a27c18d2ca09be322e20adc7731bfa73ab.tar.bz2
yuzu-e5c916a27c18d2ca09be322e20adc7731bfa73ab.tar.lz
yuzu-e5c916a27c18d2ca09be322e20adc7731bfa73ab.tar.xz
yuzu-e5c916a27c18d2ca09be322e20adc7731bfa73ab.tar.zst
yuzu-e5c916a27c18d2ca09be322e20adc7731bfa73ab.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/filesystem/filesystem.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp
index ec528ef40..a97d70a58 100644
--- a/src/core/hle/service/filesystem/filesystem.cpp
+++ b/src/core/hle/service/filesystem/filesystem.cpp
@@ -193,6 +193,10 @@ ResultVal<FileSys::EntryType> VfsDirectoryServiceWrapper::GetEntryType(
if (dir == nullptr)
return FileSys::ERROR_PATH_NOT_FOUND;
auto filename = FileUtil::GetFilename(path);
+ // TODO(Subv): Some games use the '/' path, find out what this means.
+ if (filename.empty())
+ return MakeResult(FileSys::EntryType::Directory);
+
if (dir->GetFile(filename) != nullptr)
return MakeResult(FileSys::EntryType::File);
if (dir->GetSubdirectory(filename) != nullptr)