2024-05-20 21:55:16 +00:00
|
|
|
|
using System.Reflection;
|
|
|
|
|
using BepInEx;
|
2024-05-20 12:19:06 +00:00
|
|
|
|
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;
|
2024-05-20 15:41:08 +00:00
|
|
|
|
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 {
|
2024-05-20 12:19:06 +00:00
|
|
|
|
internal static new ManualLogSource Log;
|
2024-05-19 20:38:50 +00:00
|
|
|
|
public override void Load() {
|
2024-05-20 12:19:06 +00:00
|
|
|
|
Plugin.Log = base.Log;
|
|
|
|
|
|
2024-05-19 20:38:50 +00:00
|
|
|
|
Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
|
2024-05-20 15:41:08 +00:00
|
|
|
|
|
2024-05-20 21:55:16 +00:00
|
|
|
|
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly());
|
2024-05-20 15:41:08 +00:00
|
|
|
|
Log.LogInfo("Applied patches");
|
|
|
|
|
|
|
|
|
|
ButtplugManager.Init();
|
2024-05-19 20:38:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|