using CodeWalker.GameFiles; using CodeWalker.Properties; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using CodeWalker.Utils; using CodeWalker.Core.Utils; using System.Diagnostics.Tracing; using System.Threading; namespace CodeWalker.RPFExplorer { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { try { if (!NamedPipe.TrySendMessageToOtherProcess("explorer")) { CodeWalker.Program.LoadConfig(); ConsoleWindow.Hide(); //Process.Start("CodeWalker.exe", "explorer"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var form = new ExploreForm(); var namedPipe = new NamedPipe(form); namedPipe.StartServer(); Application.Run(form); GTAFolder.UpdateSettings(); } } catch(Exception ex) { Console.WriteLine(ex.ToString()); throw; } } } }