mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-30 01:24:18 +01:00
FS: Mark recursive CreateDirectory as inaccurate and temporary
This commit is contained in:
parent
9248442bb2
commit
727f607e00
@ -97,6 +97,11 @@ ResultCode VfsDirectoryServiceWrapper::DeleteFile(const std::string& path_) cons
|
|||||||
|
|
||||||
ResultCode VfsDirectoryServiceWrapper::CreateDirectory(const std::string& path_) const {
|
ResultCode VfsDirectoryServiceWrapper::CreateDirectory(const std::string& path_) const {
|
||||||
std::string path(Common::FS::SanitizePath(path_));
|
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);
|
const auto components = Common::FS::SplitPathComponents(path);
|
||||||
std::string relative_path;
|
std::string relative_path;
|
||||||
for (const auto& component : components) {
|
for (const auto& component : components) {
|
||||||
|
Loading…
Reference in New Issue
Block a user