Fix Render on 7.10 (still not working on 6.00

This commit is contained in:
nastys
2020-03-14 03:23:26 +01:00
parent 17e1b99900
commit 537c00722c
@@ -288,9 +288,9 @@ BOOL APIENTRY DllMain(HMODULE hModule,
switch (game_version)
{
case 600:
DetourAttach(&(PVOID&)divaParseParameters_600, hookedCreateWindow);
DetourAttach(&(PVOID&)divaParseParameters_600, hookedParseParameters);
default:
DetourAttach(&(PVOID&)divaParseParameters_710, hookedCreateWindow);
DetourAttach(&(PVOID&)divaParseParameters_710, hookedParseParameters);
}
DetourTransactionCommit();
@@ -310,9 +310,9 @@ BOOL APIENTRY DllMain(HMODULE hModule,
switch (game_version)
{
case 600:
DetourAttach(&(PVOID&)divaEngineUpdate_600, hookedCreateWindow);
DetourAttach(&(PVOID&)divaEngineUpdate_600, hookedEngineUpdate);
default:
DetourAttach(&(PVOID&)divaEngineUpdate_710, hookedCreateWindow);
DetourAttach(&(PVOID&)divaEngineUpdate_710, hookedEngineUpdate);
}
DetourTransactionCommit();