Ejemplo n.º 1
0
 static void Main( string[] args )
 {
     AppDirectory = AppDomain.CurrentDomain.BaseDirectory;
     string logPath = Path.Combine( AppDirectory, "launcher.log" );
     AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;
     ErrorHandler.InstallHandler( logPath );
     LauncherWindow window = new LauncherWindow();
     window.Run();
 }
Ejemplo n.º 2
0
        static void RunLauncher()
        {
            string logPath = Path.Combine(AppDirectory, "launcher.log");

            AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;
            ErrorHandler2.InstallHandler(logPath);
            OpenTK.Configuration.SkipPerfCountersHack();
            LauncherWindow window = new LauncherWindow();

            window.Run();
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            AppDirectory = AppDomain.CurrentDomain.BaseDirectory;
            string logPath = Path.Combine(AppDirectory, "launcher.log");

            AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;
            ErrorHandler.InstallHandler(logPath);
            LauncherWindow window = new LauncherWindow();

            window.Run();
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            Environment.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory;

            if (!Platform.FileExists("ClassicalSharp.exe"))
            {
                ErrorHandler.ShowDialog("Missing file", "ClassicalSharp.exe needs to be in the same folder as the launcher.");
                return;
            }

            ErrorHandler.InstallHandler("launcher.log");
            OpenTK.Configuration.SkipPerfCountersHack();
            AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;

            LauncherWindow window = new LauncherWindow();

            window.Run();
        }
Ejemplo n.º 5
0
        static void Main(string[] args)
        {
            AppDirectory = AppDomain.CurrentDomain.BaseDirectory;
            string clientPath = Path.Combine(AppDirectory, "ClassicalSharp.exe");

            if (!File.Exists(clientPath))
            {
                MessageBox.Show("ClassicalSharp.exe needs to be in the same folder as the launcher.", "Missing file");
                return;
            }

            string logPath = Path.Combine(AppDirectory, "launcher.log");

            AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;
            ErrorHandler2.InstallHandler(logPath);
            LauncherWindow window = new LauncherWindow();

            window.Run();
        }