[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);
}
}