forked from teknogods/UnityParrot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cs
More file actions
59 lines (49 loc) · 1.77 KB
/
Main.cs
File metadata and controls
59 lines (49 loc) · 1.77 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using AMDaemon;
using NekoClient.Logging;
using System;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Threading;
using UnityEngine;
namespace UnityParrot
{
class Main
{
static void InitPatches()
{
Components.OperationManagerPatches.Patch();
Components.InitAimePatches.Patch();
Components.AimeUnitPatches.Patch();
Components.AimeResultPatches.Patch();
Components.AccessCodePatches.Patch();
Components.AimeIdPatches.Patch();
Components.AMDaemonPatches.Patch();
Components.AMManagerPatches.Patch();
Components.BackupSettingPatches.Patch();
Components.BookkeepPatches.Patch();
Components.CreditPatches.Patch();
Components.JvsPatches.Patch();
Components.SequenceInitializePatches.Patch();
Components.SerialPatches.Patch();
Components.SysConfigPatches.Patch();
}
public static void Initialize()
{
Log.Initialize(LogLevel.All);
Log.AddListener(new ConsoleLogListener());
Log.AddListener(new TraceLogListener());
Log.AddListener(new FileLogListener(FileSystem.Configuration.GetFilePath("..\\UnityParrot.log"), true));
InitPatches();
new Thread(() =>
{
Thread.Sleep(500);
GameObject mainObject = new GameObject();
mainObject.AddComponent<Components.SettingsManager>();
mainObject.AddComponent<Components.AimePatches>();
mainObject.AddComponent<Components.PacketPatches>();
UnityEngine.Object.DontDestroyOnLoad(mainObject);
}).Start();
}
}
}