When the only option for a FW record has a dummy hash, mark it unknown

fixes c4ff97111, 296145ba2
This commit is contained in:
YoshiRulz 2025-02-12 08:53:24 +10:00
parent 3771601916
commit f92565549c
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 5 additions and 1 deletions

View File

@ -63,7 +63,11 @@ namespace BizHawk.Emulation.Common
void FirmwareAndOption(string hash, long size, string systemId, string id, string name, string desc)
{
Firmware(systemId, id, desc);
Option(systemId, id, File(hash, size, name, desc), FirmwareOptionStatus.Ideal);
Option(
systemId,
id,
File(hash, size, name, desc),
hash is SHA1Checksum.Dummy ? FirmwareOptionStatus.Unknown : FirmwareOptionStatus.Ideal);
}
void AddPatchAndMaybeReverse(FirmwarePatchOption fpo)