using HarmonyLib; using MelonLoader; namespace ADOFAIRenderer.Patch.ClassPatch { [HarmonyPatch(typeof(scrController))] // ReSharper disable once InconsistentNaming public static class scrControllerPatch { [HarmonyPrefix] [HarmonyPatch("TogglePauseGame")] public static bool PreventPause() { return !RenderMod.IsRendering; } [HarmonyPrefix] [HarmonyPatch("PortalTravelAction")] public static bool PreventPortalTravel() { return !RenderMod.IsRendering; } [HarmonyPrefix] [HarmonyPatch("FailAction")] public static bool PreventFailAction() { return !RenderMod.IsRendering; } [HarmonyPrefix] [HarmonyPatch("Fail2Action")] public static bool PreventFail2Action() { return !RenderMod.IsRendering; } [HarmonyPrefix] [HarmonyPatch("OnPlayerDied")] public static bool PreventPlayerDied() { return !RenderMod.IsRendering; } } }