Fix issue 410 - Lua - don't crash on lua script errors in savestate and frame events

This commit is contained in:
adelikat 2015-03-28 00:26:10 +00:00
parent 4e9e2ffa37
commit 6ea50f6e49
1 changed files with 4 additions and 4 deletions

View File

@ -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" +