explicitly check write status for dir

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-07-22 18:17:20 -04:00
parent 287477cd18
commit d03ce976b2
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6

View file

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