Call `onexit` and cleanup when removing lua script

This commit is contained in:
kalimag 2022-12-07 08:28:31 +01:00 committed by James Groom
parent 50fc7e28da
commit 596e8d9198
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ namespace BizHawk.Client.EmuHawk
{
if (!item.IsSeparator)
{
LuaImp.RegisteredFunctions.RemoveForFile(item, Emulator);
DisableLuaScript(item);
RemoveFileWatcher(item);
}
LuaImp.ScriptList.Remove(item);