LuaRegisteredFunctionsList - override Clear() so that needed clear logic can't be mistakenly not called. Fixes #1763

This commit is contained in:
adelikat 2019-12-21 17:16:16 -06:00
parent b80b367831
commit 1e41dbf20d
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ namespace BizHawk.Client.Common
}
}
public void ClearAll()
public new void Clear()
{
if (Global.Emulator.InputCallbacksAvailable())
{
@ -50,7 +50,7 @@ namespace BizHawk.Client.Common
memoryCallbacks.RemoveAll(this.Select(w => w.MemCallback));
}
Clear();
base.Clear();
}
}

View File

@ -102,7 +102,7 @@ namespace BizHawk.Client.EmuHawk
private void RemoveAllBtn_Click(object sender, EventArgs e)
{
GlobalWin.Tools.LuaConsole.LuaImp.RegisteredFunctions.ClearAll();
GlobalWin.Tools.LuaConsole.LuaImp.RegisteredFunctions.Clear();
PopulateListView();
}