From 17a8ba28b222f54d6732235f0a8f6dd25844df0c Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Fri, 9 May 2025 13:16:58 +0700 Subject: [PATCH] make patch target type reference explicit --- CringeLauncher/CringeLauncher.csproj | 2 +- CringeLauncher/Patches/InputPatch.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CringeLauncher/CringeLauncher.csproj b/CringeLauncher/CringeLauncher.csproj index b8d4a5e..2a407c1 100644 --- a/CringeLauncher/CringeLauncher.csproj +++ b/CringeLauncher/CringeLauncher.csproj @@ -18,7 +18,7 @@ - + diff --git a/CringeLauncher/Patches/InputPatch.cs b/CringeLauncher/Patches/InputPatch.cs index 934c0b3..0b04449 100644 --- a/CringeLauncher/Patches/InputPatch.cs +++ b/CringeLauncher/Patches/InputPatch.cs @@ -20,7 +20,7 @@ internal static class InputPatch return true; } - [HarmonyPrefix, HarmonyPatch("VRage.Input.Keyboard.MyGuiLocalizedKeyboardState", "GetCurrentState")] + [HarmonyPrefix, HarmonyPatch(typeof(MyGuiLocalizedKeyboardState), nameof(MyGuiLocalizedKeyboardState.GetCurrentState))] private static bool GetKeyboardStatePrefix(ref MyKeyboardState __result) { if (ImGuiHandler.Instance?.BlockKeys == true)