-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPlugin.cs
More file actions
34 lines (28 loc) · 763 Bytes
/
Copy pathPlugin.cs
File metadata and controls
34 lines (28 loc) · 763 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
using BepInEx;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using System;
using System.Text;
namespace TSKHook;
[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
public class Plugin : BasePlugin
{
public override void Load()
{
if (Console.LargestWindowWidth > 0)
{
Console.OutputEncoding = Encoding.UTF8;
}
Global.Log = Log;
Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
TSKConfig.Read();
Window.Init();
Translation.InitAsync().Wait();
Patch.Initialize();
AddComponent<PluginBehavior>();
}
public class Global
{
public static ManualLogSource Log { get; set; }
}
}