From f1f293bd49271d30b899ed08f120f1441d390155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Thu, 30 Jan 2020 13:53:39 +0100 Subject: [PATCH] WiiRoot: Fix CopySysmenuFilesToFS directory creation Fixes a regression from #8539. CreateDirectory was the correct function to use for creating directories since parent directories already exist and are not owned by the system menu. --- Source/Core/Core/WiiRoot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/WiiRoot.cpp b/Source/Core/Core/WiiRoot.cpp index 538cc394fb..c5caf3b7b7 100644 --- a/Source/Core/Core/WiiRoot.cpp +++ b/Source/Core/Core/WiiRoot.cpp @@ -188,7 +188,7 @@ static bool CopySysmenuFilesToFS(FS::FileSystem* fs, const std::string& host_sou if (entry.isDirectory) { - fs->CreateFullPath(IOS::SYSMENU_UID, IOS::SYSMENU_GID, nand_path + '/', 0, public_modes); + fs->CreateDirectory(IOS::SYSMENU_UID, IOS::SYSMENU_GID, nand_path, 0, public_modes); if (!CopySysmenuFilesToFS(fs, host_path, nand_path)) return false; }