steam-deck-tools/PerformanceOverlay/Program.cs

29 lines
727 B
C#
Raw Normal View History

2022-12-12 15:08:00 +01:00
using CommonHelpers;
2026-02-23 05:08:07 +01:00
using System.Linq;
namespace PerformanceOverlay
{
internal static class Program
{
[STAThread]
static void Main()
{
2022-12-12 15:08:00 +01:00
Instance.WithSentry(() =>
{
2026-02-23 05:08:07 +01:00
UriProtocolRegistration.EnsureRegistered();
var commandResult = OverlayCommandLine.HandleArgs(Environment.GetCommandLineArgs().Skip(1).ToArray());
if (commandResult == OverlayControlResult.HandledAndExit)
return;
2022-12-12 15:08:00 +01:00
ApplicationConfiguration.Initialize();
using (var controller = new Controller())
{
Application.Run();
}
});
}
}
2026-02-23 05:08:07 +01:00
}