MetalButtplug/Plugin.cs

24 lines
650 B
C#
Raw Normal View History

2024-05-20 21:55:16 +00:00
using System.Reflection;
using BepInEx;
using BepInEx.Logging;
2024-05-19 20:38:50 +00:00
using BepInEx.Unity.IL2CPP;
2024-05-20 11:19:30 +00:00
using HarmonyLib;
using MetalButtplug.Utils;
2024-05-19 20:38:50 +00:00
namespace MetalButtplug;
[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
public class Plugin : BasePlugin {
internal static new ManualLogSource Log;
2024-05-19 20:38:50 +00:00
public override void Load() {
Plugin.Log = base.Log;
2024-05-19 20:38:50 +00:00
Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
2024-05-20 21:55:16 +00:00
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly());
Log.LogInfo("Applied patches");
ButtplugManager.Init();
2024-05-19 20:38:50 +00:00
}
}