IOS: Put common key handles in an array

This commit is contained in:
JosJuice
2019-07-14 13:15:53 +02:00
parent da1fbbc5d5
commit 4ee73dbad3
5 changed files with 14 additions and 13 deletions

View File

@ -609,7 +609,7 @@ void VolumeVerifier::CheckMisc()
{
const u8 common_key = ticket.GetCommonKeyIndex();
if (common_key > 1)
if (common_key > IOS::HLE::IOSC::COMMON_KEY_HANDLES.size())
{
// Many fakesigned WADs have the common key index set to a (random?) bogus value.
// For WADs, Dolphin will detect this and use common key 0 instead, making this low severity.