From a4457d871c1035975d45c59ade64ba7fbc27c447 Mon Sep 17 00:00:00 2001 From: B3n30 Date: Sun, 15 Mar 2020 20:58:43 +0100 Subject: [PATCH] Log if common key during Ticket::Load is missing --- src/core/file_sys/ticket.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/file_sys/ticket.cpp b/src/core/file_sys/ticket.cpp index 4a62b297b..2b6926adc 100644 --- a/src/core/file_sys/ticket.cpp +++ b/src/core/file_sys/ticket.cpp @@ -47,6 +47,7 @@ std::optional> Ticket::GetTitleKey() const { std::memcpy(ctr.data(), &ticket_body.title_id, sizeof(u64)); HW::AES::SelectCommonKeyIndex(ticket_body.common_key_index); if (!HW::AES::IsNormalKeyAvailable(HW::AES::KeySlotID::TicketCommonKey)) { + LOG_ERROR(Service_FS, "CommonKey {} missing", ticket_body.common_key_index); return {}; } auto key = HW::AES::GetNormalKey(HW::AES::KeySlotID::TicketCommonKey);