Fix Intro Skip Problem

This commit is contained in:
copecone committed 2026-05-23 23:46:15 +09:00
1 parent 6133d28877
commit 4abdaf33b4
2 files changed
+23 -6

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
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;
}
}
}
}