aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryuzubot <yuzu@yuzu-emu.org>2020-02-08 13:01:21 +0000
committeryuzubot <yuzu@yuzu-emu.org>2020-02-08 13:01:21 +0000
commitd0d76d0975ab7b229e00a314d033441d9a61942a (patch)
tree10ae2bf6df479281ab7fd59ed98e9d48f56305d6 /src
parent32a8c01aeb589ae38b90f265b38b1eddd7388fed (diff)
"Merge Tagged PR 1012"mainline-0-159
Diffstat (limited to 'src')
-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_)