mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
Catch when NCA partitions fail to be processed due to apparent corruption.
This commit is contained in:
parent
4145ad10db
commit
24306d80ee
1 changed files with 37 additions and 33 deletions
|
@ -570,6 +570,7 @@ void NcaProcess::processPartitions()
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
if (partition.format_type == nn::hac::nca::FormatType::PartitionFs)
|
if (partition.format_type == nn::hac::nca::FormatType::PartitionFs)
|
||||||
{
|
{
|
||||||
PfsProcess pfs;
|
PfsProcess pfs;
|
||||||
|
@ -608,6 +609,9 @@ void NcaProcess::processPartitions()
|
||||||
romfs.setExtractPath(mPartitionPath[index].path);
|
romfs.setExtractPath(mPartitionPath[index].path);
|
||||||
romfs.process();
|
romfs.process();
|
||||||
}
|
}
|
||||||
|
} catch (const fnd::Exception& e) {
|
||||||
|
std::cout << "[WARNING] NCA Partition " << std::dec << index << " not readable (" << e.error() << ")." << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue