aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzubot <yuzu@yuzu-emu.org>2019-11-12 13:01:15 +0000
committeryuzubot <yuzu@yuzu-emu.org>2019-11-12 13:01:15 +0000
commitabc8799decf48bbe94f2468b164e2955ac0ad40f (patch)
tree897a2bb8b528cbddcd914a1fb18e19efdde8ea32
parent69124982dce9adb2b2485851942f67adf38b37ca (diff)
"Merge Tagged PR 1012"mainline-0-54
-rw-r--r--src/core/hle/service/filesystem/filesystem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp
index 11e5c56b7a..83f03b5128 100644
--- a/src/core/hle/service/filesystem/filesystem.cpp
+++ b/src/core/hle/service/filesystem/filesystem.cpp
@@ -40,7 +40,10 @@ static FileSys::VirtualDir GetDirectoryRelativeWrapped(FileSys::VirtualDir base,
if (dir_name.empty() || dir_name == "." || dir_name == "/" || dir_name == "\\")
return base;
- return base->GetDirectoryRelative(dir_name);
+ const auto res = base->GetDirectoryRelative(dir_name);
+ if (res == nullptr)
+ return base->CreateDirectoryRelative(dir_name);
+ return res;
}
VfsDirectoryServiceWrapper::VfsDirectoryServiceWrapper(FileSys::VirtualDir backing_)