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
private static FirmwareOption Option(string hash, long size, string systemId, string id, FirmwareOptionStatus status = FirmwareOptionStatus.Acceptable)
{
hash = hash.ToUpperInvariant();
var fo = new FirmwareOption
{
SystemId = systemId,
@ -274,18 +276,18 @@ namespace BizHawk.Emulation.Common
// defines a firmware file
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
{
Hash = hashfix,
Hash = hash,
Size = size,
RecommendedName = recommendedName,
Description = descr,
Info = additionalInfo
};
FirmwareFiles.Add(ff);
FirmwareFilesByHash[hashfix] = ff;
FirmwareFilesByHash[hash] = ff;
return ff;
}