2022-11-15 15:42:05 +01:00
|
|
|
using CommonHelpers;
|
|
|
|
|
using PowerControl.Helpers.GPU;
|
|
|
|
|
using System.Diagnostics;
|
2022-11-14 11:06:03 +01:00
|
|
|
|
|
|
|
|
namespace PowerControl
|
|
|
|
|
{
|
|
|
|
|
internal static class Program
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The main entry point for the application.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[STAThread]
|
|
|
|
|
static void Main()
|
|
|
|
|
{
|
2022-11-15 15:42:05 +01:00
|
|
|
#if DEBUG
|
|
|
|
|
Settings.Default.EnableExperimentalFeatures = true;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
if (Settings.Default.EnableExperimentalFeatures)
|
|
|
|
|
{
|
|
|
|
|
Trace.WriteLine("WinRing0 initialized=" + WinRing0.InitializeOls().ToString());
|
|
|
|
|
|
|
|
|
|
VangoghGPU.Detect();
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-14 11:06:03 +01:00
|
|
|
// To customize application configuration such as set high DPI settings or default font,
|
|
|
|
|
// see https://aka.ms/applicationconfiguration.
|
|
|
|
|
ApplicationConfiguration.Initialize();
|
|
|
|
|
|
|
|
|
|
using (var controller = new Controller())
|
|
|
|
|
{
|
|
|
|
|
Application.Run();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|