diff --git a/MetalButtplug.csproj b/MetalButtplug.csproj index 3f2775f..680577a 100644 --- a/MetalButtplug.csproj +++ b/MetalButtplug.csproj @@ -21,5 +21,8 @@ ./BepInEx/interop/Assembly-CSharp.dll + + ./BepInEx/interop/Il2Cppmscorlib.dll + diff --git a/Patches/TestPatch.cs b/Patches/TestPatch.cs index e17617d..c1bfece 100644 --- a/Patches/TestPatch.cs +++ b/Patches/TestPatch.cs @@ -2,12 +2,11 @@ using HarmonyLib; namespace MetalButtplug.Patches; -[HarmonyPatch(typeof(BeatSequencer))] -[HarmonyPatch("UpdateBeat")] -class TestPatch { - static void Prefix(BeatStatusProvider beatStatus) { +[HarmonyPatch(typeof(BeatSequencer), nameof(BeatSequencer.UpdateBeat))] +internal class TestPatch { + private static void Prefix(BeatStatusProvider beatStatus) { if (beatStatus.BeatFlags.HasFlag(BeatFlags.Quarter)) { - Plugin.Log.LogInfo("Quarter beat: " + beatStatus.GetBeatProgress(BeatType.Quarter)); + Plugin.Log.LogInfo("Quarter beat"); } } }