add -debug launcher option

This commit is contained in:
milimoe 2023-11-19 14:54:18 +08:00 committed by GitHub
parent 72f81cf5f9
commit 2fbb511ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,17 @@ namespace Milimoe.FunGame.Desktop.UI
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
static void Main(params string[] args)
{
foreach (string option in args)
{
switch (option)
{
case "-debug":
Core.Library.Constant.FunGameInfo.FunGame_DebugMode = true;
break;
}
}
ApplicationConfiguration.Initialize();
Application.Run(new Main());
}