On loadstate clear "button start" values in the autofire logic

This commit is contained in:
adelikat 2014-08-16 14:33:09 +00:00
parent 8c4696609d
commit 3303652d99
2 changed files with 6 additions and 0 deletions

View File

@ -248,6 +248,11 @@ namespace BizHawk.Client.Common
return _buttons[button];
}
public void ClearStarts()
{
_buttonStarts.Clear();
}
public float GetFloat(string name) { throw new NotImplementedException(); }
// look for bindings which are activated by the supplied physical button.

View File

@ -2382,6 +2382,7 @@ namespace BizHawk.Client.EmuHawk
GlobalWin.Tools.UpdateToolsBefore(fromLua);
UpdateToolsAfter(fromLua);
UpdateToolsLoadstate();
Global.AutoFireController.ClearStarts();
GlobalWin.OSD.AddMessage("Loaded state: " + userFriendlyStateName);
if (GlobalWin.Tools.Has<LuaConsole>())