mirror of
https://github.com/ApeMV/AmongUsRevamped.git
synced 2026-10-19 15:51:59 +00:00
36 lines
870 B
C#
36 lines
870 B
C#
using BepInEx;
|
|
using BepInEx.Configuration;
|
|
using BepInEx.Unity.IL2CPP;
|
|
using HarmonyLib;
|
|
|
|
namespace HNSRevamped;
|
|
|
|
[BepInAutoPlugin]
|
|
[BepInProcess("Among Us.exe")]
|
|
public partial class Main : BasePlugin
|
|
{
|
|
public Harmony Harmony { get; } = new(Id);
|
|
public static BepInEx.Logging.ManualLogSource Logger;
|
|
public static BasePlugin Instance;
|
|
|
|
|
|
public override void Load()
|
|
{
|
|
var handler = HNSRevamped.Logger.Handler("GitVersion");
|
|
Logger = BepInEx.Logging.Logger.CreateLogSource("HNSRevamped");
|
|
HNSRevamped.Logger.Enable();
|
|
Instance = this;
|
|
|
|
Harmony.PatchAll();
|
|
}
|
|
|
|
[HarmonyPatch(typeof(ModManager), nameof(ModManager.LateUpdate))]
|
|
class ModManagerLateUpdatePatch
|
|
{
|
|
public static void Prefix(ModManager __instance)
|
|
{
|
|
__instance.ShowModStamp();
|
|
}
|
|
}
|
|
}
|