2022-12-12 15:08:00 +01:00
|
|
|
using CommonHelpers;
|
2026-02-23 05:08:07 +01:00
|
|
|
using System.Linq;
|
2022-11-13 13:36:50 +01:00
|
|
|
|
|
|
|
|
namespace PerformanceOverlay
|
|
|
|
|
{
|
|
|
|
|
internal static class Program
|
|
|
|
|
{
|
|
|
|
|
[STAThread]
|
|
|
|
|
static void Main()
|
|
|
|
|
{
|
2022-12-12 15:08:00 +01:00
|
|
|
Instance.WithSentry(() =>
|
2022-11-13 13:36:50 +01:00
|
|
|
{
|
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();
|
|
|
|
|
}
|
|
|
|
|
});
|
2022-11-13 13:36:50 +01:00
|
|
|
}
|
|
|
|
|
}
|
2026-02-23 05:08:07 +01:00
|
|
|
}
|