From 9269b737a286d14f9d83b10b17d897190829d7e0 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Wed, 2 Aug 2023 18:53:36 +0200 Subject: [PATCH] remove DirectInputCreateW hook --- src/directinput.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/directinput.c b/src/directinput.c index 4cee4b4..978f269 100644 --- a/src/directinput.c +++ b/src/directinput.c @@ -338,7 +338,7 @@ void dinput_hook_init() DetourAttach((PVOID*)&real_DirectInputCreateA, (PVOID)fake_DirectInputCreateA); DetourTransactionCommit(); } - + /* real_DirectInputCreateW = (void*)GetProcAddress(LoadLibraryA("dinput.dll"), "DirectInputCreateW"); if (real_DirectInputCreateW && real_DirectInputCreateW != fake_DirectInputCreateW) @@ -348,7 +348,7 @@ void dinput_hook_init() DetourAttach((PVOID*)&real_DirectInputCreateW, (PVOID)fake_DirectInputCreateW); DetourTransactionCommit(); } - + */ real_DirectInputCreateEx = (void*)GetProcAddress(LoadLibraryA("dinput.dll"), "DirectInputCreateEx"); if (real_DirectInputCreateEx && real_DirectInputCreateEx != fake_DirectInputCreateEx) @@ -384,7 +384,7 @@ void dinput_hook_exit() DetourDetach((PVOID*)&real_DirectInputCreateA, (PVOID)fake_DirectInputCreateA); DetourTransactionCommit(); } - + /* Being called from winmm for some reason if (real_DirectInputCreateW) { DetourTransactionBegin(); @@ -392,7 +392,7 @@ void dinput_hook_exit() DetourDetach((PVOID*)&real_DirectInputCreateW, (PVOID)fake_DirectInputCreateW); DetourTransactionCommit(); } - + */ if (real_DirectInputCreateEx) { DetourTransactionBegin();