[O] enforce type for SetEntryValue and some comment and type chore

This commit is contained in:
Clansty
2024-11-26 05:14:58 +08:00
parent e3b06b110f
commit da36ef4002
4 changed files with 12 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ public class JudgeAdjust
[ConfigEntry(
en: "Increase touch delay.",
zh: "增加触摸延迟")]
private static readonly int touchDelay = 0;
private static readonly uint touchDelay = 0;
[HarmonyPostfix]
[HarmonyPatch(typeof(UserOption), "GetAdjustMSec")]
@@ -45,6 +45,6 @@ public class JudgeAdjust
public static void NewTouchPanelRecv()
{
if (touchDelay <= 0) return;
Thread.Sleep(touchDelay);
Thread.Sleep((int)touchDelay);
}
}

View File

@@ -14,7 +14,7 @@ namespace AquaMai.Mods.GameSystem;
Not recommand to enable when SinglePlayer is off.
""",
zh: """
去除游戏中的倒计时(隐藏并设为 65535 秒)
去除并隐藏游戏中的倒计时
没有开启单人模式时,不建议启用
""")]
public class DisableTimeout