diff options
| author | 2021-09-12 14:06:01 -0400 | |
|---|---|---|
| committer | 2021-09-12 14:06:01 -0400 | |
| commit | 727f607e00e0ac4e2e0efe5b5525f342e0814de7 (patch) | |
| tree | b35eb2e402a5d9245c4cb11b7838cb19c0c5f756 /src | |
| parent | Merge pull request #6948 from ameerj/amd-warp-fix (diff) | |
| download | yuzu-727f607e00e0ac4e2e0efe5b5525f342e0814de7.tar.gz yuzu-727f607e00e0ac4e2e0efe5b5525f342e0814de7.tar.xz yuzu-727f607e00e0ac4e2e0efe5b5525f342e0814de7.zip | |
FS: Mark recursive CreateDirectory as inaccurate and temporary
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/filesystem/filesystem.cpp | 5 |
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 | |||
| 97 | 97 | ||
| 98 | ResultCode VfsDirectoryServiceWrapper::CreateDirectory(const std::string& path_) const { | 98 | ResultCode VfsDirectoryServiceWrapper::CreateDirectory(const std::string& path_) const { |
| 99 | std::string path(Common::FS::SanitizePath(path_)); | 99 | std::string path(Common::FS::SanitizePath(path_)); |
| 100 | |||
| 101 | // NOTE: This is inaccurate behavior. CreateDirectory is not recursive. | ||
| 102 | // CreateDirectory should return PathNotFound if the parent directory does not exist. | ||
| 103 | // This is here temporarily in order to have UMM "work" in the meantime. | ||
| 104 | // TODO (Morph): Remove this when a hardware test verifies the correct behavior. | ||
| 100 | const auto components = Common::FS::SplitPathComponents(path); | 105 | const auto components = Common::FS::SplitPathComponents(path); |
| 101 | std::string relative_path; | 106 | std::string relative_path; |
| 102 | for (const auto& component : components) { | 107 | for (const auto& component : components) { |