mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
don't hook DirectInputCreateW
This commit is contained in:
parent
d95c29d8b6
commit
d4b80ac48d
@ -105,7 +105,7 @@ HOOKLIST g_hook_hooklist[] =
|
||||
"dinput.dll",
|
||||
{
|
||||
{ "DirectInputCreateA", (PROC)fake_DirectInputCreateA, (PROC*)&real_DirectInputCreateA, SKIP_HOOK2 },
|
||||
{ "DirectInputCreateW", (PROC)fake_DirectInputCreateW, (PROC*)&real_DirectInputCreateW, SKIP_HOOK2 },
|
||||
//{ "DirectInputCreateW", (PROC)fake_DirectInputCreateW, (PROC*)&real_DirectInputCreateW, SKIP_HOOK2 },
|
||||
{ "DirectInputCreateEx", (PROC)fake_DirectInputCreateEx, (PROC*)&real_DirectInputCreateEx, SKIP_HOOK2 },
|
||||
{ "", NULL, NULL, 0 }
|
||||
}
|
||||
@ -573,6 +573,11 @@ void hook_init(BOOL initial_hook)
|
||||
/* Switch to 3 if we can be sure that ddraw.dll will not be unloaded from the process */
|
||||
g_hook_method = 3;
|
||||
}
|
||||
|
||||
if (g_hook_method == 2)
|
||||
{
|
||||
//dinput_hook_init();
|
||||
}
|
||||
}
|
||||
|
||||
if (!g_hook_active || g_hook_method == 3 || g_hook_method == 4)
|
||||
|
Loading…
x
Reference in New Issue
Block a user