explicitly check write status for dir
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
cb5719ec0e
commit
ae62ee3d27
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ FirmwareInstallResult InstallFirmware(const QString& location,
|
||||||
|
|
||||||
// Locate and erase the content of nand/system/Content/registered/*.nca, if any.
|
// Locate and erase the content of nand/system/Content/registered/*.nca, if any.
|
||||||
auto sysnand_content_vdir = system->GetFileSystemController().GetSystemNANDContentDirectory();
|
auto sysnand_content_vdir = system->GetFileSystemController().GetSystemNANDContentDirectory();
|
||||||
if (!sysnand_content_vdir->CleanSubdirectoryRecursive("registered")) {
|
if (sysnand_content_vdir->IsWritable() && !sysnand_content_vdir->CleanSubdirectoryRecursive("registered")) {
|
||||||
return FirmwareInstallResult::FailedDelete;
|
return FirmwareInstallResult::FailedDelete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue