Lua Console - temp fix to fix recent regression of lua scripts disappearing on reboot core
This commit is contained in:
parent
770f27dfd4
commit
4d1dd215e6
|
@ -166,7 +166,13 @@ namespace BizHawk.Client.EmuHawk
|
||||||
file.Stop();
|
file.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var currentScripts = LuaImp?.ScriptList; // Temp fix for now
|
||||||
LuaImp = new EmuLuaLibrary(Emulator.ServiceProvider);
|
LuaImp = new EmuLuaLibrary(Emulator.ServiceProvider);
|
||||||
|
if (currentScripts != null)
|
||||||
|
{
|
||||||
|
LuaImp.ScriptList.AddRange(currentScripts);
|
||||||
|
}
|
||||||
|
|
||||||
InputBox.AutoCompleteCustomSource.AddRange(LuaImp.Docs.Select(a => a.Library + "." + a.Name).ToArray());
|
InputBox.AutoCompleteCustomSource.AddRange(LuaImp.Docs.Select(a => a.Library + "." + a.Name).ToArray());
|
||||||
|
|
||||||
foreach (var file in runningScripts)
|
foreach (var file in runningScripts)
|
||||||
|
|
Loading…
Reference in New Issue