When adding firmware info to movies, don't attempt to add duplicate keys

This commit is contained in:
adelikat 2015-02-08 20:28:57 +00:00
parent 5e07ab3ec3
commit 5626473fbf
1 changed files with 6 additions and 1 deletions

View File

@ -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);
}
}
}