Exemple #1
0
        private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            try
            {
                Exception ex = (Exception)e.ExceptionObject;

                LuaScripting.debug(ex.Message + "\n\nStack Trace:\n" + ex.StackTrace);
            }
            catch (Exception exc)
            {
                LuaScripting.debug(exc.Message + "\n\nStack Trace:\n" + exc.StackTrace);
                Application.Exit();
            }
        }
Exemple #2
0
 private void button7_Click(object sender, EventArgs e)
 {
     LuaScripting.ReloadScripts();
 }
Exemple #3
0
 private static void Application_ApplicationExit(object sender, EventArgs e)
 {
     LuaScripting.CloseScripts();
 }