mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 01:27:28 +08:00
[F] Some compatability for 2p mode
This commit is contained in:
@@ -52,5 +52,31 @@ namespace AquaMai.UX
|
||||
____monitors[0].SetButtonPressed(InputManager.ButtonSetting.Button04);
|
||||
Traverse.Create(__instance).Method("OnTimeUp").GetValue();
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(PlInformationMonitor), "IsPlayPlInfoEnd")]
|
||||
public static bool IWontTapOrSlideVigorously(ref bool __result)
|
||||
{
|
||||
__result = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(GameOverMonitor), "IsPlayEnd")]
|
||||
public static bool GameOverMonitorPlayEnd(ref bool __result)
|
||||
{
|
||||
__result = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(GameOverProcess), "OnUpdate")]
|
||||
public static void GameOverProcessOnUpdate(ref GameOverProcess.GameOverSequence ____state)
|
||||
{
|
||||
if (____state == GameOverProcess.GameOverSequence.SkyChange)
|
||||
{
|
||||
____state = GameOverProcess.GameOverSequence.Disp;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user