Skip to content

Commit 78f9449

Browse files
committed
[F] SinglePlayer AutoSkip not disabling card reader
1 parent 98b0bf0 commit 78f9449

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

AquaMai.Mods/GameSystem/SinglePlayer.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
using System.Collections;
12
using System.Collections.Generic;
23
using System.Reflection;
34
using AquaMai.Core;
45
using AquaMai.Core.Attributes;
56
using AquaMai.Config.Attributes;
7+
using AquaMai.Core.Helpers;
68
using AquaMai.Mods.Fancy.GamePlay;
79
using HarmonyLib;
810
using MAI2.Util;
@@ -78,12 +80,19 @@ public static void PostDecideEntry(EntryMonitor __instance)
7880
TimeManager.MarkGameStartTime();
7981
Singleton<EventManager>.Instance.UpdateEvent();
8082
Singleton<ScoreRankingManager>.Instance.UpdateData();
83+
SharedInstances.GameMainObject.StartCoroutine(LaterDisableCardReader());
8184
__instance.Process.CreateDownloadProcess();
8285
__instance.ProcessManager.SendMessage(new Message(ProcessType.CommonProcess, 30001));
8386
__instance.ProcessManager.SendMessage(new Message(ProcessType.CommonProcess, 40000, 0, OperationInformationController.InformationType.Hide));
8487
__instance.Process.SetNextProcess();
8588
}
8689

90+
private static IEnumerator LaterDisableCardReader()
91+
{
92+
yield return new WaitForSeconds(3);
93+
SingletonStateMachine<AmManager, AmManager.EState>.Instance.AimeReader.EnableRead(flag: false);
94+
}
95+
8796
// To prevent the "長押受付終了" overlay from appearing
8897
[EnableGameVersion(21500, noWarn: true)]
8998
[EnableIf(nameof(autoSkip))]

0 commit comments

Comments
 (0)