using System;
using System.ComponentModel;
using System.Threading;
using System.Windows.Forms;
namespace FF8_Launcher
{
internal static class Program
{
private static Mutex InvalidationMultipleExecution;
public static string Title
{
get
{
return "FINAL FANTASY VIII Remastered LAUNCHER";
}
}
public static bool IsAlreadyRunning()
{
Program.InvalidationMultipleExecution = new Mutex(false, "FF8_LauncherCS");
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (FF8Launcher));
if (Program.InvalidationMultipleExecution.WaitOne(0, false))
return false;
int num = (int) MessageBox.Show(componentResourceManager.GetString("AlreadyRunning"), Program.Title);
return true;
}
[STAThread]
private static void Main()
{
try
{
if (Program.IsAlreadyRunning())
return;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run((Form) new FF8Launcher());
}
catch (Exception ex)
{
int num = (int) MessageBox.Show(ex.ToString(), Program.Title);
}
}
}
}