Skip IMM ImGui handling if ImGui is not initialized (#1836)

This commit is contained in:
Soreepeong 2024-06-14 23:11:45 +09:00
parent a12edcbae0
commit 6247542169

View file

@ -496,6 +496,9 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui
private char HandleImmDetour(IntPtr framework, char a2, byte a3)
{
var result = this.handleImmHook.Original(framework, a2, a3);
if (!ImGuiHelpers.IsImGuiInitialized)
return result;
return ImGui.GetIO().WantTextInput
? (char)0
: result;