mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-13 23:07:28 +08:00
[+] TouchPanelBaudRate
This commit is contained in:
15
AquaMai/Utils/TouchPanelBaudRate.cs
Normal file
15
AquaMai/Utils/TouchPanelBaudRate.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user