using System.Reflection; using BepInEx; using BepInEx.Logging; using BepInEx.Unity.IL2CPP; using HarmonyLib; using MetalButtplug.Utils; namespace MetalButtplug; [BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)] public class Plugin : BasePlugin { internal static new ManualLogSource Log; public override void Load() { Plugin.Log = base.Log; Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!"); Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly()); Log.LogInfo("Applied patches"); ButtplugManager.Init(); } }