Files
ADOFAIRenderer/Patch/ClassPatch/PersistencePatch.cs
T
2026-05-23 23:46:15 +09:00

20 lines
563 B
C#

using HarmonyLib;
namespace ADOFAIRenderer.Patch.ClassPatch
{
[HarmonyPatch(typeof(Persistence), "skipIntroBehavior", MethodType.Getter)]
public static class PersistencePatch
{
// ReSharper disable once InconsistentNaming
public static void Postfix(ref SkipIntroBehavior __result)
{
if (RenderMod.IsRendering &&
scrConductor.instance != null &&
!scrConductor.instance.hasSongStarted)
{
__result = SkipIntroBehavior.Off;
}
}
}
}