initial plugin before git init

This commit is contained in:
Valentijn
2026-05-30 14:24:45 +02:00
commit d589d77934
21 changed files with 4114 additions and 0 deletions

40
LaunchConfirm.cs Normal file
View File

@@ -0,0 +1,40 @@
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
namespace LaunchConfirm;
[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
public class LaunchConfirm : BaseUnityPlugin
{
public static LaunchConfirm Instance { get; private set; } = null!;
internal new static ManualLogSource Logger { get; private set; } = null!;
internal static Harmony? Harmony { get; set; }
private void Awake()
{
Logger = base.Logger;
Instance = this;
Patch();
Logger.LogInfo($"{MyPluginInfo.PLUGIN_GUID} v{MyPluginInfo.PLUGIN_VERSION} has loaded!");
}
internal static void Patch()
{
Harmony ??= new Harmony(MyPluginInfo.PLUGIN_GUID);
Logger.LogDebug("Patching...");
Harmony.PatchAll();
Logger.LogDebug("Finished patching!");
}
internal static void Unpatch()
{
Logger.LogDebug("Unpatching...");
Harmony?.UnpatchSelf();
Logger.LogDebug("Finished unpatching!");
}
}