add setting for dinput detours hooks

This commit is contained in:
FunkyFr3sh 2021-08-11 14:07:47 +02:00
parent 71f3b03763
commit 4ee34d1c77
3 changed files with 6 additions and 4 deletions

View file

@ -381,7 +381,7 @@ void hook_init()
BOOL initial_hook = !g_hook_active;
#ifdef _MSC_VER
if (initial_hook && g_hook_method == 3)
if (initial_hook && g_ddraw->dinputhook)
{
real_DirectInputCreateA =
(DIRECTINPUTCREATEAPROC)GetProcAddress(LoadLibraryA("dinput.dll"), "DirectInputCreateA");
@ -459,7 +459,7 @@ void hook_exit()
g_hook_active = FALSE;
#ifdef _MSC_VER
if (g_hook_method == 3)
if (g_ddraw->dinputhook)
{
if (real_DirectInputCreateA)
{