From 2f0ed1c636143bb8caf1544ff091892b347fda09 Mon Sep 17 00:00:00 2001 From: DartPower Date: Mon, 3 Jun 2019 00:01:02 +0300 Subject: [PATCH] Update Program.cs --- Program.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Program.cs b/Program.cs index e3f7ab7..4fc4141 100644 --- a/Program.cs +++ b/Program.cs @@ -9,25 +9,25 @@ namespace SharpMCL { - static class Program + static class Program { static string assetIndex = ""; static string clientjar; - [STAThread] - static void Main(string[] args) + [STAThread] + static void Main(string[] args) { Marshal.PrelinkAll(typeof(Program)); Process currentProcess = Process.GetCurrentProcess(); currentProcess.PriorityClass = ProcessPriorityClass.High; Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - try - { - Application.Run(new LauncherForm()); - } + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + try + { + Application.Run(new LauncherForm()); + } catch (Exception ex) { try @@ -40,7 +40,7 @@ static void Main(string[] args) } } - public static void start(string clientdir, string client, string user, string uuid, string session) + public static void start(string clientdir, string client, string user, string uuid, string session) { string nfolder = clientdir + @"versions\" + client + @"\natives"; Directory.CreateDirectory(nfolder);