IOS/ES: Verify containers in ImportTicket

This commit is contained in:
Léo Lam
2017-06-11 18:35:24 +02:00
parent 07d83ada39
commit 719af1aff4
3 changed files with 11 additions and 4 deletions

View File

@ -27,7 +27,7 @@ bool InstallWAD(const std::string& wad_path)
const auto es = ios.GetES();
IOS::HLE::Device::ES::Context context;
if (es->ImportTicket(wad.GetTicket().GetBytes()) < 0 ||
if (es->ImportTicket(wad.GetTicket().GetBytes(), wad.GetCertificateChain()) < 0 ||
es->ImportTitleInit(context, tmd.GetBytes()) < 0)
{
PanicAlertT("WAD installation failed: Could not initialise title import.");