This commit is contained in:
Lea 2024-05-20 15:39:49 +02:00
parent 8bfffd55c3
commit 03bdf4a1e0
Signed by: Lea
GPG key ID: 1BAFFE8347019C42
2 changed files with 7 additions and 5 deletions

View file

@ -21,5 +21,8 @@
<Reference Include="Assembly-CSharp">
<HintPath>./BepInEx/interop/Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Il2Cppmscorlib">
<HintPath>./BepInEx/interop/Il2Cppmscorlib.dll</HintPath>
</Reference>
</ItemGroup>
</Project>

View file

@ -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");
}
}
}