Merge pull request #1837 from Soreepeong/fix/handleimmdetour-fix

Skip IMM ImGui handling if ImGui is not initialized
This commit is contained in:
goat 2024-06-15 23:14:46 +02:00 committed by GitHub
commit 33b64e783c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;