fix firmware scanning for 32x and probably others

This commit is contained in:
zeromus 2017-07-11 20:05:26 -05:00
parent d305c873bf
commit 2fc5a9c9a1
1 changed files with 5 additions and 3 deletions

View File

@ -237,6 +237,8 @@ namespace BizHawk.Emulation.Common
// adds an acceptable option for a firmware ID to the database // adds an acceptable option for a firmware ID to the database
private static FirmwareOption Option(string hash, long size, string systemId, string id, FirmwareOptionStatus status = FirmwareOptionStatus.Acceptable) private static FirmwareOption Option(string hash, long size, string systemId, string id, FirmwareOptionStatus status = FirmwareOptionStatus.Acceptable)
{ {
hash = hash.ToUpperInvariant();
var fo = new FirmwareOption var fo = new FirmwareOption
{ {
SystemId = systemId, SystemId = systemId,
@ -274,18 +276,18 @@ namespace BizHawk.Emulation.Common
// defines a firmware file // defines a firmware file
private static FirmwareFile File(string hash, long size, string recommendedName, string descr, string additionalInfo = "") private static FirmwareFile File(string hash, long size, string recommendedName, string descr, string additionalInfo = "")
{ {
string hashfix = hash.ToUpperInvariant(); hash = hash.ToUpperInvariant();
var ff = new FirmwareFile var ff = new FirmwareFile
{ {
Hash = hashfix, Hash = hash,
Size = size, Size = size,
RecommendedName = recommendedName, RecommendedName = recommendedName,
Description = descr, Description = descr,
Info = additionalInfo Info = additionalInfo
}; };
FirmwareFiles.Add(ff); FirmwareFiles.Add(ff);
FirmwareFilesByHash[hashfix] = ff; FirmwareFilesByHash[hash] = ff;
return ff; return ff;
} }