This commit is contained in:
CasualPokePlayer 2022-02-18 00:18:15 -08:00
parent 278ba086a3
commit a91b861a4d
1 changed files with 4 additions and 3 deletions

View File

@ -208,10 +208,11 @@ namespace BizHawk.Client.Common
{
ri.KnownFirmwareFile = ff;
// if the known firmware file is for a different firmware, flag it so we can show a warning
if (FirmwareDatabase.FirmwareOptions.Any(fo => fo.Hash == rff.Hash && fo.ID != fr.ID))
// assume the firmware file is for a different firmware, unflag it in case it isn't
ri.KnownMismatching = true;
if (FirmwareDatabase.FirmwareOptions.Any(fo => fo.Hash == rff.Hash && fo.ID == fr.ID))
{
ri.KnownMismatching = true;
ri.KnownMismatching = false;
}
}
}