Use overloaded this[] rather than .Add on header import
This commit is contained in:
parent
d94acff295
commit
7e2d4a75b4
|
@ -13,7 +13,7 @@ namespace BizHawk.Client.Common
|
||||||
Bk2Movie movie = Result.Movie;
|
Bk2Movie movie = Result.Movie;
|
||||||
MiscHeaderInfo info;
|
MiscHeaderInfo info;
|
||||||
|
|
||||||
movie.HeaderEntries.Add(HeaderKeys.PLATFORM, "PSX");
|
movie.HeaderEntries[HeaderKeys.PLATFORM] = "PSX";
|
||||||
|
|
||||||
using (var fs = SourceFile.OpenRead())
|
using (var fs = SourceFile.OpenRead())
|
||||||
{
|
{
|
||||||
|
@ -65,7 +65,7 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
if ((flags & 0x04) != 0)
|
if ((flags & 0x04) != 0)
|
||||||
{
|
{
|
||||||
movie.HeaderEntries.Add(HeaderKeys.PAL, "1");
|
movie.HeaderEntries[HeaderKeys.PAL] = "1";
|
||||||
}
|
}
|
||||||
if ((flags & 0x08) != 0)
|
if ((flags & 0x08) != 0)
|
||||||
{
|
{
|
||||||
|
@ -147,7 +147,7 @@ namespace BizHawk.Client.Common
|
||||||
UInt32 authorNameLength = br.ReadUInt32();
|
UInt32 authorNameLength = br.ReadUInt32();
|
||||||
char[] authorName = br.ReadChars((int)authorNameLength);
|
char[] authorName = br.ReadChars((int)authorNameLength);
|
||||||
|
|
||||||
movie.HeaderEntries.Add(HeaderKeys.AUTHOR, new string(authorName));
|
movie.HeaderEntries[HeaderKeys.AUTHOR] = new string(authorName);
|
||||||
|
|
||||||
info.parseSuccessful = true;
|
info.parseSuccessful = true;
|
||||||
return info;
|
return info;
|
||||||
|
|
|
@ -17,7 +17,7 @@ namespace BizHawk.Client.Common.movie.import
|
||||||
Bk2Movie movie = Result.Movie;
|
Bk2Movie movie = Result.Movie;
|
||||||
MiscHeaderInfo info;
|
MiscHeaderInfo info;
|
||||||
|
|
||||||
movie.HeaderEntries.Add(HeaderKeys.PLATFORM, "PSX");
|
movie.HeaderEntries[HeaderKeys.PLATFORM] = "PSX";
|
||||||
|
|
||||||
using (var fs = SourceFile.OpenRead())
|
using (var fs = SourceFile.OpenRead())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue