-
Notifications
You must be signed in to change notification settings - Fork 1
/
SebaFixes.cs
40 lines (35 loc) · 973 Bytes
/
SebaFixes.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
using System;
using System.Reflection;
using BepInEx;
using HarmonyLib;
using SebaFixes.config;
using SebaFixes.utils;
namespace SebaFixes
{
[BepInPlugin(PluginGuid, PluginName, PluginVersion)]
internal class SebaFixes : BaseUnityPlugin
{
public const string PluginGuid = "com.sebag.pcbs.fixes";
public const string PluginName = "Seba Fixes";
public const string PluginVersion = "1.7.0";
internal void Awake()
{
SFLog.log("loaded!");
SFLog.disableLogger();
ConfigHandler.Instance.ConfigFile = Config;
}
public SebaFixes()
{
var harmony = new Harmony(PluginGuid);
harmony.PatchAll(Assembly.GetExecutingAssembly());
}
private void Update()
{
ConfigHandler.Instance.Update();
}
protected void OnGUI()
{
ConfigHandler.Instance.OnGUI();
}
}
}