Beispiel #1
0
        private static void Main(string[] args)
        {
            LibPathManager.SetDllSearchPath();
            AppDomain.CurrentDomain.AssemblyResolve += LibPathManager.CustomResolve;

            RunPlayer(args);
        }
Beispiel #2
0
        static void Main()
        {
            LibPathManager.SetDllSearchPath();
            AppDomain.CurrentDomain.AssemblyResolve += LibPathManager.CustomResolve;

            RunTests();
        }
Beispiel #3
0
        public new int Run()
        {
            try
            {
                LibPathManager.SetDllSearchPath();
                AppDomain.CurrentDomain.AssemblyResolve += LibPathManager.CustomResolve;
                return(base.Run());
            }
            catch (ShutDownSilentException)
            {
                // do nothing, simply exit without any dialog
            }
            catch (ShutDownException shutdownException)
            {
                UIHelper.ShowErrorMessageBox(shutdownException.Message, shutdownException.Title);
            }
#if !DEBUG
            catch (Exception ex)
            {
                Components.CrashReportWindow.ShowCrashReportForException(ex);
            }
#endif
            return(0);
        }