2022-05-14 19:00:01 +02:00
|
|
|
using BeatSaber_Versions.controller;
|
|
|
|
using BeatSaber_Versions.controller.helper;
|
|
|
|
using BeatSaber_Versions.ui;
|
|
|
|
|
2022-05-12 00:35:22 +02:00
|
|
|
namespace BeatSaber_Versions
|
|
|
|
{
|
|
|
|
internal static class Program
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The main entry point for the application.
|
|
|
|
/// </summary>
|
|
|
|
[STAThread]
|
|
|
|
static void Main()
|
|
|
|
{
|
|
|
|
// To customize application configuration such as set high DPI settings or default font,
|
|
|
|
// see https://aka.ms/applicationconfiguration.
|
|
|
|
ApplicationConfiguration.Initialize();
|
2022-05-14 19:00:01 +02:00
|
|
|
if (staticHelpers.IsElevated)
|
|
|
|
{
|
2022-05-15 01:04:38 +02:00
|
|
|
|
2022-05-14 19:00:01 +02:00
|
|
|
Storage.CC = new Config();
|
|
|
|
Application.Run(new VersionChanger());
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
Application.Run(new NoAdmin());
|
|
|
|
}
|
|
|
|
|
2022-05-12 00:35:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|