Files
ADOFAIRenderer/Patch/ClassPatch/scrPlayerManagerPatch.cs
T
2026-05-22 19:31:44 +09:00

21 lines
622 B
C#

using ADOFAIRenderer.Component;
using HarmonyLib;
namespace ADOFAIRenderer.Patch.ClassPatch
{
[HarmonyPatch(typeof(scrPlayerManager))]
// ReSharper disable once InconsistentNaming
public static class scrPlayerManagerPatch
{
[HarmonyPrefix]
[HarmonyPatch("AnyValidInputWasTriggered")]
// ReSharper disable once InconsistentNaming
private static bool IgnoreInput(ref bool __result)
{
if (!RenderMod.IsRendering) return true;
__result = RenderManager.FrameCount == 0 && RenderManager.Countdown == 0;
return false;
}
}
}