aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzubot <yuzu@yuzu-emu.org>2019-12-22 13:01:15 +0000
committeryuzubot <yuzu@yuzu-emu.org>2019-12-22 13:01:15 +0000
commitf276676f05dc6d5b1bdaeed61836528bdeeac757 (patch)
tree5cb87e3144a758592fdbe2ae2417b4aa7a6752df
parent0b60a65b296705a4e68fc253f832301d3dee21b5 (diff)
"Merge Tagged PR 1012"mainline-0-109
-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 102017d73f..432ed32209 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_)