summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChloe <25727384+ogniK5377@users.noreply.github.com>2021-09-08 19:00:08 +0200
committerGitHub <noreply@github.com>2021-09-08 19:00:08 +0200
commit005b0e68db603fbcbd0f2cdab722880d227d50ac (patch)
tree49843419e68e7a2928d23d7420bb9797f6c41911 /src
parentFS: Recursively create directories for CreateDirectory (diff)
downloadyuzu-005b0e68db603fbcbd0f2cdab722880d227d50ac.tar
yuzu-005b0e68db603fbcbd0f2cdab722880d227d50ac.tar.gz
yuzu-005b0e68db603fbcbd0f2cdab722880d227d50ac.tar.bz2
yuzu-005b0e68db603fbcbd0f2cdab722880d227d50ac.tar.lz
yuzu-005b0e68db603fbcbd0f2cdab722880d227d50ac.tar.xz
yuzu-005b0e68db603fbcbd0f2cdab722880d227d50ac.tar.zst
yuzu-005b0e68db603fbcbd0f2cdab722880d227d50ac.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/filesystem/filesystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp
index 14a491dd5..db17d61e4 100644
--- a/src/core/hle/service/filesystem/filesystem.cpp
+++ b/src/core/hle/service/filesystem/filesystem.cpp
@@ -98,7 +98,7 @@ ResultCode VfsDirectoryServiceWrapper::DeleteFile(const std::string& path_) cons
ResultCode VfsDirectoryServiceWrapper::CreateDirectory(const std::string& path_) const {
std::string path(Common::FS::SanitizePath(path_));
const auto components = Common::FS::SplitPathComponents(path);
- std::string relative_path = "";
+ std::string relative_path;
for (const auto& component : components) {
// Skip empty path components
if (component.empty()) {