Merge pull request #349 from diamante0018/aaaaaaaa

[Scheduler] Fix hook
This commit is contained in:
Dss0 2022-07-03 00:49:20 +02:00 committed by GitHub
commit fa98263fe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();