[+] TouchPanelBaudRate

This commit is contained in:
Clansty
2024-10-22 00:19:12 +08:00
parent 3bc9f1382c
commit 0f1bfc5a17
5 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using HarmonyLib;
using IO;
namespace AquaMai.Utils;
public class TouchPanelBaudRate
{
[HarmonyPatch(typeof(NewTouchPanel), "Open")]
[HarmonyPrefix]
private static void OpenPrefix(ref int ___BaudRate)
{
if (AquaMai.AppConfig.Utils.TouchPanelBaudRate <= 0) return;
___BaudRate = AquaMai.AppConfig.Utils.TouchPanelBaudRate;
}
}