steam-deck-tools/SteamController/Program.cs

35 lines
990 B
C#
Raw Normal View History

2022-12-12 15:08:00 +01:00
using CommonHelpers;
using System.Diagnostics;
2022-12-12 15:08:00 +01:00
namespace SteamController
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
2022-12-12 15:08:00 +01:00
Instance.WithSentry(() =>
{
// Raise the application priority to Above Normal for better responsiveness
try
{
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.AboveNormal;
}
catch { }
2022-12-12 15:08:00 +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();
}
});
}
}
}