From 7e2d4a75b4e0168f6ddf927a318138b58c85b08f Mon Sep 17 00:00:00 2001 From: Iris Ward Date: Tue, 22 Sep 2015 22:46:59 +0100 Subject: [PATCH] Use overloaded this[] rather than .Add on header import --- BizHawk.Client.Common/movie/import/PJMImport.cs | 6 +++--- BizHawk.Client.Common/movie/import/PXMImport.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BizHawk.Client.Common/movie/import/PJMImport.cs b/BizHawk.Client.Common/movie/import/PJMImport.cs index 045ccdaf1b..5a5874fffd 100644 --- a/BizHawk.Client.Common/movie/import/PJMImport.cs +++ b/BizHawk.Client.Common/movie/import/PJMImport.cs @@ -13,7 +13,7 @@ namespace BizHawk.Client.Common Bk2Movie movie = Result.Movie; MiscHeaderInfo info; - movie.HeaderEntries.Add(HeaderKeys.PLATFORM, "PSX"); + movie.HeaderEntries[HeaderKeys.PLATFORM] = "PSX"; using (var fs = SourceFile.OpenRead()) { @@ -65,7 +65,7 @@ namespace BizHawk.Client.Common } if ((flags & 0x04) != 0) { - movie.HeaderEntries.Add(HeaderKeys.PAL, "1"); + movie.HeaderEntries[HeaderKeys.PAL] = "1"; } if ((flags & 0x08) != 0) { @@ -147,7 +147,7 @@ namespace BizHawk.Client.Common UInt32 authorNameLength = br.ReadUInt32(); char[] authorName = br.ReadChars((int)authorNameLength); - movie.HeaderEntries.Add(HeaderKeys.AUTHOR, new string(authorName)); + movie.HeaderEntries[HeaderKeys.AUTHOR] = new string(authorName); info.parseSuccessful = true; return info; diff --git a/BizHawk.Client.Common/movie/import/PXMImport.cs b/BizHawk.Client.Common/movie/import/PXMImport.cs index 850c2bd206..a4ef2ebdd3 100644 --- a/BizHawk.Client.Common/movie/import/PXMImport.cs +++ b/BizHawk.Client.Common/movie/import/PXMImport.cs @@ -17,7 +17,7 @@ namespace BizHawk.Client.Common.movie.import Bk2Movie movie = Result.Movie; MiscHeaderInfo info; - movie.HeaderEntries.Add(HeaderKeys.PLATFORM, "PSX"); + movie.HeaderEntries[HeaderKeys.PLATFORM] = "PSX"; using (var fs = SourceFile.OpenRead()) {