Lua Console - temp fix to fix recent regression of lua scripts disappearing on reboot core

This commit is contained in:
adelikat 2017-05-24 08:30:30 -05:00
parent 770f27dfd4
commit 4d1dd215e6
1 changed files with 6 additions and 0 deletions

View File

@ -166,7 +166,13 @@ namespace BizHawk.Client.EmuHawk
file.Stop();
}
var currentScripts = LuaImp?.ScriptList; // Temp fix for now
LuaImp = new EmuLuaLibrary(Emulator.ServiceProvider);
if (currentScripts != null)
{
LuaImp.ScriptList.AddRange(currentScripts);
}
InputBox.AutoCompleteCustomSource.AddRange(LuaImp.Docs.Select(a => a.Library + "." + a.Name).ToArray());
foreach (var file in runningScripts)