mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-03-28 15:35:02 +01:00
29 lines
727 B
C#
29 lines
727 B
C#
using CommonHelpers;
|
|
using System.Linq;
|
|
|
|
namespace PerformanceOverlay
|
|
{
|
|
internal static class Program
|
|
{
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
Instance.WithSentry(() =>
|
|
{
|
|
UriProtocolRegistration.EnsureRegistered();
|
|
|
|
var commandResult = OverlayCommandLine.HandleArgs(Environment.GetCommandLineArgs().Skip(1).ToArray());
|
|
if (commandResult == OverlayControlResult.HandledAndExit)
|
|
return;
|
|
|
|
ApplicationConfiguration.Initialize();
|
|
|
|
using (var controller = new Controller())
|
|
{
|
|
Application.Run();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|