SHA256
forked from ADOFAIEditorForum/ADOFAIRenderer
Fix Intro Skip Problem
This commit is contained in:
1 parent
6133d28877
commit
4abdaf33b4
2 files changed
+23
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user