1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

don't hook DirectInputCreateW

This commit is contained in:
FunkyFr3sh 2023-08-20 17:54:06 +02:00
parent d95c29d8b6
commit d4b80ac48d

View File

@ -105,7 +105,7 @@ HOOKLIST g_hook_hooklist[] =
"dinput.dll", "dinput.dll",
{ {
{ "DirectInputCreateA", (PROC)fake_DirectInputCreateA, (PROC*)&real_DirectInputCreateA, SKIP_HOOK2 }, { "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 }, { "DirectInputCreateEx", (PROC)fake_DirectInputCreateEx, (PROC*)&real_DirectInputCreateEx, SKIP_HOOK2 },
{ "", NULL, NULL, 0 } { "", 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 */ /* Switch to 3 if we can be sure that ddraw.dll will not be unloaded from the process */
g_hook_method = 3; g_hook_method = 3;
} }
if (g_hook_method == 2)
{
//dinput_hook_init();
}
} }
if (!g_hook_active || g_hook_method == 3 || g_hook_method == 4) if (!g_hook_active || g_hook_method == 3 || g_hook_method == 4)