Skip to content

Commit

Permalink
[F] Maybe fixed some PractiseMode problems
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Nov 13, 2024
1 parent e5a4b7f commit c8f4a05
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions AquaMai/Fix/TouchResetAfterTrack.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using HarmonyLib;
using MAI2.Util;
using Manager;
using Process;

namespace AquaMai.Fix;

public class TouchResetAfterTrack
{
[HarmonyPostfix]
[HarmonyPatch(typeof(ResultProcess), "OnStart")]
public static void ResultProcessOnStart()
{
SingletonStateMachine<AmManager, AmManager.EState>.Instance.StartTouchPanel();
MelonLoader.MelonLogger.Msg("[TouchResetAfterTrack] Touch panel reset");
}

[HarmonyPostfix]
[HarmonyPatch(typeof(GamePlayManager), "SetQuickRetryFrag")]
public static void OnStart()
{
SingletonStateMachine<AmManager, AmManager.EState>.Instance.StartTouchPanel();
MelonLoader.MelonLogger.Msg("[TouchResetAfterTrack] Touch panel reset");
}
}

0 comments on commit c8f4a05

Please sign in to comment.