From a83d9e56000fef7212d666d08a0f5a6e7e7b39c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 29 Dec 2019 17:29:53 +0100 Subject: [PATCH] IOS/FS: Make sure FS root directory exists Previously, the FS root directory would get created as a side effect of calling CreateDirectory during boot (since the implementation was sloppy and used File::CreateFullDir). Since CreateDirectory no longer does that, it is necessary to ensure that the FS root directory does exist by creating it explicitly. --- Source/Core/Core/IOS/FS/HostBackend/FS.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/IOS/FS/HostBackend/FS.cpp b/Source/Core/Core/IOS/FS/HostBackend/FS.cpp index 9ee4dc9fd1..4cff7bfb72 100644 --- a/Source/Core/Core/IOS/FS/HostBackend/FS.cpp +++ b/Source/Core/Core/IOS/FS/HostBackend/FS.cpp @@ -103,6 +103,7 @@ bool HostFileSystem::FstEntry::CheckPermission(Uid caller_uid, Gid caller_gid, HostFileSystem::HostFileSystem(const std::string& root_path) : m_root_path{root_path} { + File::CreateFullPath(m_root_path + "/"); ResetFst(); LoadFst(); }