mirror of
https://github.com/project-redbud/FunGame-Desktop.git
synced 2025-04-21 20:49:34 +08:00
35 lines
971 B
C#
35 lines
971 B
C#
namespace Milimoe.FunGame.Desktop.UI
|
|
{
|
|
internal static class Start
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main(params string[] args)
|
|
{
|
|
foreach (string option in args)
|
|
{
|
|
switch (option)
|
|
{
|
|
case "-debug":
|
|
Core.Library.Constant.FunGameInfo.FunGame_DebugMode = true;
|
|
break;
|
|
}
|
|
}
|
|
// ³õʼ»¯ WinForms ÅäÖÃ
|
|
ApplicationConfiguration.Initialize();
|
|
|
|
// ³õʼ»¯ WPF Application
|
|
System.Windows.Application wpfApp = new()
|
|
{
|
|
ShutdownMode = System.Windows.ShutdownMode.OnExplicitShutdown
|
|
};
|
|
wpfApp.Dispatcher.Invoke(() => { });
|
|
|
|
Application.Run(new Main());
|
|
|
|
wpfApp.Shutdown();
|
|
}
|
|
}
|
|
} |