-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Program.cs
38 lines (35 loc) · 1.22 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
Rusty Hearts Launcher - Windows Forms Implementation in C#
Author: JuniorDark
GitHub Repository: https://github.com/JuniorDark/RustyHearts-Launcher
This code serves as a starting point for creating your own launcher.
However, it requires further development to improve functionality and
ensure stability. Please check the GitHub repository for updates.
*/
using RHLauncher.RHLauncher.i8n;
namespace RHLauncher
{
internal static class Program
{
private static readonly Mutex mutex = new(false, "RHLauncher");
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main()
{
if (mutex.WaitOne(TimeSpan.Zero, true))
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
Application.Run(new LoginForm());
mutex.ReleaseMutex();
}
else
{
MessageBox.Show(LocalizedStrings.LauncherAlreadyRunning, LocalizedStrings.Error);
}
}
}
}