Fix bug in loadNintendoFirm

This commit is contained in:
TuxSH 2024-12-30 14:29:32 +01:00
parent b15e5fa8d6
commit 043e2d2497

View File

@ -222,7 +222,10 @@ u32 loadNintendoFirm(FirmwareType *firmType, FirmwareSource nandType, bool loadF
};
u32 i;
for(i = 0; i < 4; i++) if(memcmp(firm->section[1].hash, hashes[i], 0x20) == 0) break;
for(i = 0; i < sizeof(hashes)/sizeof(hashes[0]); i++)
{
if(memcmp(firm->section[1].hash, hashes[i], 0x20) == 0) break;
}
switch(i)
{