SHA256
forked from ADOFAIEditorForum/ADOFAIRenderer
Refactor and Reorganize Patch Structure and Namespaces
This commit is contained in:
1 parent
c235da001c
commit
9514829040
14 files changed
+19
-18
No files matched your search
@@ -0,0 +1,20 @@
|
||||
using ADOFAIRenderer.Core;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace ADOFAIRenderer.Patch.Game
|
||||
{
|
||||
[HarmonyPatch(typeof(Persistence), "skipIntroBehavior", MethodType.Getter)]
|
||||
public static class PersistencePatch
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public static void Postfix(ref SkipIntroBehavior __result)
|
||||
{
|
||||
if (RenderManager.IsActive &&
|
||||
scrConductor.instance != null &&
|
||||
!scrConductor.instance.hasSongStarted)
|
||||
{
|
||||
__result = SkipIntroBehavior.Off;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user