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.
This commit is contained in:
Léo Lam 2020-01-30 13:53:39 +01:00
parent 57f4837e4d
commit f1f293bd49
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}