summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-09-12 20:06:01 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-09-12 20:06:01 +0200
commit727f607e00e0ac4e2e0efe5b5525f342e0814de7 (patch)
treeb35eb2e402a5d9245c4cb11b7838cb19c0c5f756
parentMerge pull request #6948 from ameerj/amd-warp-fix (diff)
downloadyuzu-727f607e00e0ac4e2e0efe5b5525f342e0814de7.tar
yuzu-727f607e00e0ac4e2e0efe5b5525f342e0814de7.tar.gz
yuzu-727f607e00e0ac4e2e0efe5b5525f342e0814de7.tar.bz2
yuzu-727f607e00e0ac4e2e0efe5b5525f342e0814de7.tar.lz
yuzu-727f607e00e0ac4e2e0efe5b5525f342e0814de7.tar.xz
yuzu-727f607e00e0ac4e2e0efe5b5525f342e0814de7.tar.zst
yuzu-727f607e00e0ac4e2e0efe5b5525f342e0814de7.zip
-rw-r--r--src/core/hle/service/filesystem/filesystem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp
index db17d61e4..c8d65f328 100644
--- a/src/core/hle/service/filesystem/filesystem.cpp
+++ b/src/core/hle/service/filesystem/filesystem.cpp
@@ -97,6 +97,11 @@ ResultCode VfsDirectoryServiceWrapper::DeleteFile(const std::string& path_) cons
ResultCode VfsDirectoryServiceWrapper::CreateDirectory(const std::string& path_) const {
std::string path(Common::FS::SanitizePath(path_));
+
+ // NOTE: This is inaccurate behavior. CreateDirectory is not recursive.
+ // CreateDirectory should return PathNotFound if the parent directory does not exist.
+ // This is here temporarily in order to have UMM "work" in the meantime.
+ // TODO (Morph): Remove this when a hardware test verifies the correct behavior.
const auto components = Common::FS::SplitPathComponents(path);
std::string relative_path;
for (const auto& component : components) {