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,8 +94,13 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
LoadConfigSettings();
|
LoadConfigSettings();
|
||||||
if (Global.Config.AutoLoadLuaSession)
|
if (Global.Config.AutoLoadLuaSession)
|
||||||
|
{
|
||||||
|
if (!Global.Config.RecentLuaSession.IsEmpty())
|
||||||
|
{
|
||||||
LoadSessionFromRecent(Global.Config.RecentLuaSession.GetRecentFileByPosition(0));
|
LoadSessionFromRecent(Global.Config.RecentLuaSession.GetRecentFileByPosition(0));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void StopScript(int x)
|
private void StopScript(int x)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue