diff options
author | BreadFish64 <breadfish64@users.noreply.github.com> | 2023-12-06 05:17:19 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-12-06 05:17:19 +0100 |
commit | d5de9402ee22eea985d6842baafd8922e15d3784 (patch) | |
tree | f302a3a87aad12213c36ef00cd28c86e3e27ba61 /src/core/hle/service | |
parent | Merge pull request #12271 from liamwhite/pretext-fix (diff) | |
download | yuzu-d5de9402ee22eea985d6842baafd8922e15d3784.tar yuzu-d5de9402ee22eea985d6842baafd8922e15d3784.tar.gz yuzu-d5de9402ee22eea985d6842baafd8922e15d3784.tar.bz2 yuzu-d5de9402ee22eea985d6842baafd8922e15d3784.tar.lz yuzu-d5de9402ee22eea985d6842baafd8922e15d3784.tar.xz yuzu-d5de9402ee22eea985d6842baafd8922e15d3784.tar.zst yuzu-d5de9402ee22eea985d6842baafd8922e15d3784.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/filesystem/filesystem.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index 508db7360..780f8c74d 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp @@ -104,11 +104,7 @@ Result VfsDirectoryServiceWrapper::CreateDirectory(const std::string& path_) con const auto components = Common::FS::SplitPathComponents(path); std::string relative_path; for (const auto& component : components) { - // Skip empty path components - if (component.empty()) { - continue; - } - relative_path = Common::FS::SanitizePath(relative_path + '/' + component); + relative_path = Common::FS::SanitizePath(fmt::format("{}/{}", relative_path, component)); auto new_dir = backing->CreateSubdirectory(relative_path); if (new_dir == nullptr) { // TODO(DarkLordZach): Find a better error code for this |