Fix bug in MovieHeader that throws an exception in the Play Movie dialog if a movie with Board Properties is loaded (this is just a work around to a problem caused by a bad design!)
This commit is contained in:
parent
06d61598d3
commit
ad848c5e96
|
@ -78,6 +78,15 @@ namespace BizHawk.Client.Common
|
|||
HeaderParams.Add(key, value);
|
||||
}
|
||||
|
||||
public void AddBoardProperty(string key, string value)
|
||||
{
|
||||
string temp;
|
||||
if (!BoardProperties.TryGetValue(key, out temp))
|
||||
{
|
||||
BoardProperties.Add(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateRerecordCount(int count)
|
||||
{
|
||||
HeaderParams[RERECORDS] = count.ToString();
|
||||
|
@ -232,7 +241,7 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
line = ParseHeader(line, BOARDPROPERTIES);
|
||||
string[] vals = line.Split(' ');
|
||||
BoardProperties.Add(vals[0], vals[1]);
|
||||
AddBoardProperty(vals[0], vals[1]);
|
||||
}
|
||||
else if (line.StartsWith("subtitle") || line.StartsWith("sub"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue