BeatSaber-version-changer/Program.cs

31 lines
898 B
C#
Raw Normal View History

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)
{
getNormalBeatSaberFolder.getBSFolder();
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
}
}
}