-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
27 lines (24 loc) · 737 Bytes
/
Plugin.cs
File metadata and controls
27 lines (24 loc) · 737 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
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
namespace BetterSpectator
{
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
public class Plugin : BaseUnityPlugin
{
private readonly Harmony harmony = new Harmony("Aelstraz.BetterSpectator");
private static ManualLogSource logger = null;
private void Awake()
{
logger = Logger;
Settings.Load(Config);
harmony.PatchAll(typeof(HUDManager_Patch));
Log($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
}
public static void Log(string info)
{
logger.LogInfo(info);
}
}
}