don't fail if the control nca cannot be parsed during install, as it may depend on ticket not yet installed.
This commit is contained in:
1 parent
55ae2a63d9
commit
70a31be134
1 file changed
+4
-2
@@ -929,8 +929,10 @@ Result Yati::InstallNca(std::span<TikCollection> tickets, NcaCollection& nca) {
|
|||||||
} else if (nca.header.content_type == nca::ContentType_Control) {
|
} else if (nca.header.content_type == nca::ContentType_Control) {
|
||||||
NacpLanguageEntry entry;
|
NacpLanguageEntry entry;
|
||||||
std::vector<u8> icon;
|
std::vector<u8> icon;
|
||||||
R_TRY(nca::ParseControl(path, nca.header.program_id, &entry, sizeof(entry), &icon));
|
// this may fail if tickets aren't installed and the nca uses title key crypto.
|
||||||
pbox->SetTitle(entry.name).SetImageData(icon);
|
if (R_SUCCEEDED(nca::ParseControl(path, nca.header.program_id, &entry, sizeof(entry), &icon))) {
|
||||||
|
pbox->SetTitle(entry.name).SetImageData(icon);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
R_SUCCEED();
|
R_SUCCEED();
|
||||||
|
|||||||
Reference in new issue
Block a user