mirror of https://github.com/hykilpikonna/AquaDX
32 lines
815 B
C#
32 lines
815 B
C#
![]() |
using System.Threading;
|
|||
|
using HarmonyLib;
|
|||
|
using IO;
|
|||
|
using Manager.UserDatas;
|
|||
|
|
|||
|
namespace AquaMai.Utils;
|
|||
|
|
|||
|
public class JudgeAdjust
|
|||
|
{
|
|||
|
[HarmonyPostfix]
|
|||
|
[HarmonyPatch(typeof(UserOption), "GetAdjustMSec")]
|
|||
|
public static void GetAdjustMSec(ref float __result)
|
|||
|
{
|
|||
|
__result += AquaMai.AppConfig.Utils.JudgeAdjustA * 16.666666f;
|
|||
|
}
|
|||
|
|
|||
|
[HarmonyPostfix]
|
|||
|
[HarmonyPatch(typeof(UserOption), "GetJudgeTimingFrame")]
|
|||
|
public static void GetJudgeTimingFrame(ref float __result)
|
|||
|
{
|
|||
|
__result += AquaMai.AppConfig.Utils.JudgeAdjustB;
|
|||
|
}
|
|||
|
|
|||
|
[HarmonyPrefix]
|
|||
|
[HarmonyPatch(typeof(NewTouchPanel), "Recv")]
|
|||
|
public static void NewTouchPanelRecv()
|
|||
|
{
|
|||
|
if (AquaMai.AppConfig.Utils.TouchDelay <= 0) return;
|
|||
|
Thread.Sleep(AquaMai.AppConfig.Utils.TouchDelay);
|
|||
|
}
|
|||
|
}
|