When adding firmware info to movies, don't attempt to add duplicate keys
This commit is contained in:
parent
5e07ab3ec3
commit
5626473fbf
|
@ -226,7 +226,12 @@ namespace BizHawk.Client.Common.MovieConversionExtensions
|
|||
{
|
||||
foreach (var firmware in Global.FirmwareManager.RecentlyServed)
|
||||
{
|
||||
movie.HeaderEntries.Add(firmware.SystemId + " Firmware " + firmware.FirmwareId, firmware.Hash);
|
||||
var key = firmware.SystemId + " Firmware " + firmware.FirmwareId;
|
||||
|
||||
if (!movie.HeaderEntries.ContainsKey(key))
|
||||
{
|
||||
movie.HeaderEntries.Add(key, firmware.Hash);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue