[Scheduler] Fix hook

This commit is contained in:
Diavolo 2022-07-02 12:17:08 +02:00
parent 69bbdc0e9d
commit 2040533a0a
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
2 changed files with 4 additions and 4 deletions

View File

@ -67,9 +67,9 @@ namespace Components
Pipelines[type].execute(); Pipelines[type].execute();
} }
void Scheduler::CL_DrawScreen_Hk() void Scheduler::ScrPlace_EndFrame_Hk()
{ {
Utils::Hook::Call<void()>(0x5AC950)(); Utils::Hook::Call<void()>(0x4AA720)();
Execute(Pipeline::RENDERER); Execute(Pipeline::RENDERER);
} }
@ -165,7 +165,7 @@ namespace Components
} }
}); });
Utils::Hook(0x5ACB99, CL_DrawScreen_Hk, HOOK_CALL).install()->quick(); Utils::Hook(0x5ACB9E, ScrPlace_EndFrame_Hk, HOOK_CALL).install()->quick();
// Hook G_Glass_Update so we may fix TLS issues // Hook G_Glass_Update so we may fix TLS issues
Utils::Hook(0x416049, ServerFrame_Hk, HOOK_CALL).install()->quick(); Utils::Hook(0x416049, ServerFrame_Hk, HOOK_CALL).install()->quick();

View File

@ -59,7 +59,7 @@ namespace Components
static void Execute(Pipeline type); static void Execute(Pipeline type);
static void CL_DrawScreen_Hk(); static void ScrPlace_EndFrame_Hk();
static void ServerFrame_Hk(); static void ServerFrame_Hk();
static void ClientFrame_Hk(int localClientNum); static void ClientFrame_Hk(int localClientNum);
static void MainFrame_Hk(); static void MainFrame_Hk();