dont crash when organizing firmware

This commit is contained in:
zeromus 2014-08-03 22:38:27 +00:00
parent 4deda7eb91
commit d5c4787792
2 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ namespace BizHawk.Client.Common
_resolutionDictionary.TryGetValue(record, out resolved);
// couldnt find it! do a scan and resolve to try harder
// NOTE: this could result in bad performance in some cases if the scanning happens repeatedly..
if (resolved == null && first)
{
DoScanAndResolve();

View File

@ -264,6 +264,7 @@ namespace BizHawk.Client.EmuHawk
foreach (var fr in FirmwareDatabase.FirmwareRecords)
{
var ri = Manager.Resolve(fr);
if (ri == null) continue;
if (ri.KnownFirmwareFile == null) continue;
if (ri.UserSpecified) continue;