aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzubot <yuzu@yuzu-emu.org>2020-01-23 13:01:20 +0000
committeryuzubot <yuzu@yuzu-emu.org>2020-01-23 13:01:20 +0000
commita9c1819635b5da1c60fa5a3cbe9ee61ce4b8d33d (patch)
treef9b73138248c5b016c0163cd5a9ce6b40498ff37
parent0cfcd705231cbda2ac36ca9da232d6df7872ea2c (diff)
"Merge Tagged PR 1012"mainline-0-141
-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_)