VERY experimental Nintendo Switch 2 emulator
C++
FS: Mark recursive CreateDirectory as inaccurate and temporary
Morph9191db654d70
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cppindex db17d61e4b..c8d65f3282 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_) consResultCode 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) {