explicitly check write status for dir
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
efa3a44ac1
commit
edadf5e8c8
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.
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue