Fix issue 410 - Lua - don't crash on lua script errors in savestate and frame events
This commit is contained in:
parent
4e9e2ffa37
commit
6ea50f6e49
|
@ -57,7 +57,7 @@ namespace BizHawk.Client.Common
|
||||||
lf.Call(name);
|
lf.Call(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (SystemException e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Log(
|
Log(
|
||||||
"error running function attached by lua function event.onsavestate" +
|
"error running function attached by lua function event.onsavestate" +
|
||||||
|
@ -79,7 +79,7 @@ namespace BizHawk.Client.Common
|
||||||
lf.Call(name);
|
lf.Call(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (SystemException e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Log(
|
Log(
|
||||||
"error running function attached by lua function event.onloadstate" +
|
"error running function attached by lua function event.onloadstate" +
|
||||||
|
@ -101,7 +101,7 @@ namespace BizHawk.Client.Common
|
||||||
lf.Call();
|
lf.Call();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (SystemException e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Log(
|
Log(
|
||||||
"error running function attached by lua function event.onframestart" +
|
"error running function attached by lua function event.onframestart" +
|
||||||
|
@ -123,7 +123,7 @@ namespace BizHawk.Client.Common
|
||||||
lf.Call();
|
lf.Call();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (SystemException e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Log(
|
Log(
|
||||||
"error running function attached by lua function event.onframeend" +
|
"error running function attached by lua function event.onframeend" +
|
||||||
|
|
Loading…
Reference in New Issue