diff --git a/src/hactoolnet/ProcessAppFs.cs b/src/hactoolnet/ProcessAppFs.cs index 2af95faa..9976c17e 100644 --- a/src/hactoolnet/ProcessAppFs.cs +++ b/src/hactoolnet/ProcessAppFs.cs @@ -23,14 +23,15 @@ internal static class ProcessAppFs var ticket = new Ticket(tikFile.Get.AsStream()); - if (ticket.TitleKeyType != TitleKeyType.Common) - continue; - if (ticket.RightsId.IsZeros()) continue; + byte[] key = ticket.GetTitleKey(ctx.KeySet); + if (key is null) + continue; + var rightsId = SpanHelpers.AsStruct(ticket.RightsId); - var accessKey = SpanHelpers.AsStruct(ticket.TitleKeyBlock); + var accessKey = SpanHelpers.AsStruct(key); ctx.KeySet.ExternalKeySet.Add(rightsId, accessKey).ThrowIfFailure(); }