Catch when NCA partitions fail to be processed due to apparent corruption.

This commit is contained in:
jakcron 2021-09-24 18:19:22 +08:00
parent 4145ad10db
commit 24306d80ee

View file

@ -570,6 +570,7 @@ void NcaProcess::processPartitions()
continue;
}
try {
if (partition.format_type == nn::hac::nca::FormatType::PartitionFs)
{
PfsProcess pfs;
@ -608,6 +609,9 @@ void NcaProcess::processPartitions()
romfs.setExtractPath(mPartitionPath[index].path);
romfs.process();
}
} catch (const fnd::Exception& e) {
std::cout << "[WARNING] NCA Partition " << std::dec << index << " not readable (" << e.error() << ")." << std::endl;
}
}
}