SHA256
20 lines
563 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|