make patch target type reference explicit
All checks were successful
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 57s
Build / Build Nuget package (NuGet) (push) Successful in 55s
Build / Build Nuget package (SharedCringe) (push) Successful in 54s
Build / Build Launcher (push) Successful in 2m13s
Build / Build Nuget package (CringePlugins) (push) Successful in 3m20s

This commit is contained in:
zznty
2025-05-09 13:16:58 +07:00
parent 2a1b648f02
commit 17a8ba28b2
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
<Publicize Include="Sandbox.Game:Sandbox.Engine.Platform.Game.set_DrawThread" /> <Publicize Include="Sandbox.Game:Sandbox.Engine.Platform.Game.set_DrawThread" />
<Publicize Include="Sandbox.Game:Sandbox.MySandboxGame.form" /> <Publicize Include="Sandbox.Game:Sandbox.MySandboxGame.form" />
<Publicize Include="Sandbox.Game:Sandbox.MySandboxGame.RenderThread_SizeChanged" /> <Publicize Include="Sandbox.Game:Sandbox.MySandboxGame.RenderThread_SizeChanged" />
<Publicize Include="VRage.Render;VRage.Render11;VRage.Platform.Windows;VRage.Scripting" IncludeCompilerGeneratedMembers="false" /> <Publicize Include="VRage.Render;VRage.Render11;VRage.Platform.Windows;VRage.Scripting;VRage.Input" IncludeCompilerGeneratedMembers="false" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -20,7 +20,7 @@ internal static class InputPatch
return true; return true;
} }
[HarmonyPrefix, HarmonyPatch("VRage.Input.Keyboard.MyGuiLocalizedKeyboardState", "GetCurrentState")] [HarmonyPrefix, HarmonyPatch(typeof(MyGuiLocalizedKeyboardState), nameof(MyGuiLocalizedKeyboardState.GetCurrentState))]
private static bool GetKeyboardStatePrefix(ref MyKeyboardState __result) private static bool GetKeyboardStatePrefix(ref MyKeyboardState __result)
{ {
if (ImGuiHandler.Instance?.BlockKeys == true) if (ImGuiHandler.Instance?.BlockKeys == true)