mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-16 20:17:30 +08:00
53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[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;
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|