Fix exception when statrting from saveram multple times
This commit is contained in:
parent
655729f29c
commit
1c9182a290
|
@ -93,11 +93,17 @@ namespace BizHawk.Client.Common
|
||||||
{
|
{
|
||||||
if (value)
|
if (value)
|
||||||
{
|
{
|
||||||
Header.Add(HeaderKeys.STARTSFROMSAVERAM, "True");
|
if (!Header.ContainsKey(HeaderKeys.STARTSFROMSAVERAM))
|
||||||
|
{
|
||||||
|
Header.Add(HeaderKeys.STARTSFROMSAVERAM, "True");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Header.Remove(HeaderKeys.STARTSFROMSAVERAM);
|
if (Header.ContainsKey(HeaderKeys.STARTSFROMSAVERAM))
|
||||||
|
{
|
||||||
|
Header.Remove(HeaderKeys.STARTSFROMSAVERAM);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue