diff options
author | Subv <subv2112@gmail.com> | 2018-07-19 20:11:09 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-19 20:11:09 +0200 |
commit | e5c916a27c18d2ca09be322e20adc7731bfa73ab (patch) | |
tree | 96bccff005c662b72a76e65dfee0d86ab7bc931b /src | |
parent | Merge pull request #701 from lioncash/moving (diff) | |
download | yuzu-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.cpp | 4 |
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) |