ooprs
This commit is contained in:
parent
8bfffd55c3
commit
03bdf4a1e0
|
@ -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>
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue