mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 17:32:30 +00:00
IOS: Assume ticket is unpersonalised for WAD imports
The newer title dumpers don't clobber tickets anymore (that's good!), which means personalised tickets still have the console specific data used to decrypt the title key in them. Dolphin should ignore that data when importing WADs, because the title key has already been decrypted, and we must not try to decrypt it *again*.
This commit is contained in:
parent
faced475df
commit
c0c1cb3010
3 changed files with 14 additions and 4 deletions
|
@ -65,7 +65,8 @@ static bool InstallWAD(IOS::HLE::Kernel& ios, const DiscIO::WiiWAD& wad)
|
|||
// Ensure the common key index is correct, as it's checked by IOS.
|
||||
ticket.FixCommonKeyIndex();
|
||||
|
||||
while ((ret = es->ImportTicket(ticket.GetBytes(), wad.GetCertificateChain())) < 0 ||
|
||||
while ((ret = es->ImportTicket(ticket.GetBytes(), wad.GetCertificateChain(),
|
||||
IOS::HLE::Device::ES::TicketImportType::Unpersonalised)) < 0 ||
|
||||
(ret = es->ImportTitleInit(context, tmd.GetBytes(), wad.GetCertificateChain())) < 0)
|
||||
{
|
||||
if (checks_enabled && ret == IOS::HLE::IOSC_FAIL_CHECKVALUE &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue