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,11 +266,8 @@ 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);
}
}
var error = _core.Init(
ref initConfig,

View File

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