fix dsi firmware checking

This commit is contained in:
CasualPokePlayer 2023-11-02 10:16:30 -07:00
parent 1ca7b0295d
commit 7e91e1b260
2 changed files with 5 additions and 5 deletions

View File

@ -266,10 +266,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
throw new InvalidOperationException("Invalid firmware length");
}
if (fw.Length == 0x20000) // fw checks dont work on dsi firmware for some reason, need to check what's going wrong
{
NDSFirmware.MaybeWarnIfBadFw(fw, CoreComm.ShowMessage);
}
NDSFirmware.MaybeWarnIfBadFw(fw, CoreComm.ShowMessage);
}
var error = _core.Init(

View File

@ -56,7 +56,10 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
return;
}
CheckDecryptedCodeChecksum(fw, warningCallback);
if (fw.Length != 0x20000) // no code in DSi firmware
{
CheckDecryptedCodeChecksum(fw, warningCallback);
}
}
private static unsafe ushort Crc16(byte* data, int len, int seed)