Lua console - fix to autoload lua session, if there is no recent session, it will open nothing, rather than cause an exception
This commit is contained in:
parent
1bedd81666
commit
8214a649c3
|
@ -94,7 +94,12 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
LoadConfigSettings();
|
||||
if (Global.Config.AutoLoadLuaSession)
|
||||
LoadSessionFromRecent(Global.Config.RecentLuaSession.GetRecentFileByPosition(0));
|
||||
{
|
||||
if (!Global.Config.RecentLuaSession.IsEmpty())
|
||||
{
|
||||
LoadSessionFromRecent(Global.Config.RecentLuaSession.GetRecentFileByPosition(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void StopScript(int x)
|
||||
|
@ -390,7 +395,7 @@ namespace BizHawk.MultiClient
|
|||
luaList.Clear();
|
||||
DisplayLuaList();
|
||||
UpdateNumberOfScripts();
|
||||
currentSessionFile = "";
|
||||
currentSessionFile = "";
|
||||
Changes(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue