Fix exception when statrting from saveram multple times

This commit is contained in:
alyosha-tas 2019-04-21 09:06:16 -04:00
parent 655729f29c
commit 1c9182a290
1 changed files with 8 additions and 2 deletions

View File

@ -92,15 +92,21 @@ namespace BizHawk.Client.Common
set
{
if (value)
{
if (!Header.ContainsKey(HeaderKeys.STARTSFROMSAVERAM))
{
Header.Add(HeaderKeys.STARTSFROMSAVERAM, "True");
}
}
else
{
if (Header.ContainsKey(HeaderKeys.STARTSFROMSAVERAM))
{
Header.Remove(HeaderKeys.STARTSFROMSAVERAM);
}
}
}
}
public string GameName
{