mirror of
https://github.com/JuniorDark/RustyHearts-Launcher.git
synced 2026-05-07 05:21:44 -04:00
Add project files.
This commit is contained in:
commit
5d3b4542bf
120 changed files with 36258 additions and 0 deletions
36
Program.cs
Normal file
36
Program.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
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.
|
||||
*/
|
||||
|
||||
namespace RHLauncher
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
private static readonly Mutex mutex = new(false, "Launcher");
|
||||
/// <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("Only one instance of the launcher can run at a time.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue