Only attempt to import common tickets. (#1886)

This commit is contained in:
Steven Smith 2021-01-10 19:47:13 -08:00 committed by GitHub
parent 3c09abf9e6
commit 5117b21c52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,7 +269,10 @@ namespace Ryujinx.HLE.FileSystem
{ {
Ticket ticket = new Ticket(ticketFile.AsStream()); Ticket ticket = new Ticket(ticketFile.AsStream());
KeySet.ExternalKeySet.Add(new RightsId(ticket.RightsId), new AccessKey(ticket.GetTitleKey(KeySet))); if (ticket.TitleKeyType == TitleKeyType.Common)
{
KeySet.ExternalKeySet.Add(new RightsId(ticket.RightsId), new AccessKey(ticket.GetTitleKey(KeySet)));
}
} }
} }
} }