-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
41 lines (33 loc) · 971 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using Loly.src;
using Loly.src.Logs;
using Loly.src.Menus;
using Loly.src.Menus.Core;
using Loly.src.Tasks;
using Loly.src.Tools;
using Loly.src.Variables;
using Loly.src.Variables.Enums;
namespace Loly;
internal class Program
{
private static void Main()
{
AppDomain.CurrentDomain.UnhandledException += UnhandledException;
Settings.SetDefaultSettings();
Settings.CreateOrUpdateSettings();
if (Settings.EnableAutoUpdate)
{
Updater.CheckUpdate();
}
TaskCore tasks = new();
tasks.StartAllTasks();
// Wait for the League Client (and app) to be ready
Thread.Sleep(3000);
Logger.PrintHeader();
Interface.ShowArt();
MainMenu.StartMenu();
}
private static void UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
Utils.LogNewError("Unhandled exception", LogModule.Loly, (Exception)e.ExceptionObject);
}
}