mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-15 15:19:57 +00:00
25 lines
657 B
C#
25 lines
657 B
C#
using Daybreak.Windows.Configuration;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Daybreak.Windows;
|
|
|
|
internal sealed partial class Launcher
|
|
{
|
|
#if DEBUG
|
|
[LibraryImport("kernel32.dll", SetLastError = true)]
|
|
[return: MarshalAs(UnmanagedType.Bool)]
|
|
private static partial bool AllocConsole();
|
|
#endif
|
|
|
|
[STAThread]
|
|
private static void Main(string[] args)
|
|
{
|
|
#if DEBUG
|
|
AllocConsole();
|
|
#endif
|
|
var bootstrap = Daybreak.Launch.Launcher.SetupBootstrap();
|
|
var platformConfiguration = new WindowsPlatformConfiguration();
|
|
Daybreak.Launch.Launcher.LaunchSequence(args, bootstrap, platformConfiguration);
|
|
}
|
|
}
|