mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Log if common key during Ticket::Load is missing
This commit is contained in:
		
							parent
							
								
									1d92343344
								
							
						
					
					
						commit
						a4457d871c
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -47,6 +47,7 @@ std::optional<std::array<u8, 16>> Ticket::GetTitleKey() const { | ||||||
|     std::memcpy(ctr.data(), &ticket_body.title_id, sizeof(u64)); |     std::memcpy(ctr.data(), &ticket_body.title_id, sizeof(u64)); | ||||||
|     HW::AES::SelectCommonKeyIndex(ticket_body.common_key_index); |     HW::AES::SelectCommonKeyIndex(ticket_body.common_key_index); | ||||||
|     if (!HW::AES::IsNormalKeyAvailable(HW::AES::KeySlotID::TicketCommonKey)) { |     if (!HW::AES::IsNormalKeyAvailable(HW::AES::KeySlotID::TicketCommonKey)) { | ||||||
|  |         LOG_ERROR(Service_FS, "CommonKey {} missing", ticket_body.common_key_index); | ||||||
|         return {}; |         return {}; | ||||||
|     } |     } | ||||||
|     auto key = HW::AES::GetNormalKey(HW::AES::KeySlotID::TicketCommonKey); |     auto key = HW::AES::GetNormalKey(HW::AES::KeySlotID::TicketCommonKey); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue