-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
37 lines (33 loc) · 753 Bytes
/
Program.cs
File metadata and controls
37 lines (33 loc) · 753 Bytes
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
/// <summary>
/// Main program.
/// </summary>
static class Wrapper
{
///<summary>
///The main program logic.
///</summary>
public static void Main(string[] _)
{
try
{
Config.Load();
}
catch (Exception ex)
{
Log.Wrapper($"Error reading the config file, exiting... ({ex.Message})");
return;
}
Target.ConfigureProcess();
Log.Wrapper("uwap.org/wrapper 2.1.3.2");
try
{
Target.UpdateAndStart();
}
catch (Exception ex)
{
Log.Wrapper($"Error starting the target process, exiting... ({ex.Message})");
return;
}
Target.HandleOutput();
}
}