ooprs
This commit is contained in:
parent
8bfffd55c3
commit
03bdf4a1e0
|
@ -21,5 +21,8 @@
|
||||||
<Reference Include="Assembly-CSharp">
|
<Reference Include="Assembly-CSharp">
|
||||||
<HintPath>./BepInEx/interop/Assembly-CSharp.dll</HintPath>
|
<HintPath>./BepInEx/interop/Assembly-CSharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Il2Cppmscorlib">
|
||||||
|
<HintPath>./BepInEx/interop/Il2Cppmscorlib.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -2,12 +2,11 @@ using HarmonyLib;
|
||||||
|
|
||||||
namespace MetalButtplug.Patches;
|
namespace MetalButtplug.Patches;
|
||||||
|
|
||||||
[HarmonyPatch(typeof(BeatSequencer))]
|
[HarmonyPatch(typeof(BeatSequencer), nameof(BeatSequencer.UpdateBeat))]
|
||||||
[HarmonyPatch("UpdateBeat")]
|
internal class TestPatch {
|
||||||
class TestPatch {
|
private static void Prefix(BeatStatusProvider beatStatus) {
|
||||||
static void Prefix(BeatStatusProvider beatStatus) {
|
|
||||||
if (beatStatus.BeatFlags.HasFlag(BeatFlags.Quarter)) {
|
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