diff --git a/src/client/component/branding.cpp b/src/client/component/branding.cpp index 16d8d7eb..c53fe40f 100644 --- a/src/client/component/branding.cpp +++ b/src/client/component/branding.cpp @@ -2,6 +2,8 @@ #include "loader/component_loader.hpp" #include "game/game.hpp" +#include "scheduler.hpp" + #include #include @@ -39,7 +41,7 @@ namespace branding public: void post_unpack() override { - r_end_frame_hook.create(0x142273560_g, r_end_frame_stub); + scheduler::loop(draw_branding, scheduler::renderer); } }; } diff --git a/src/client/component/scheduler.cpp b/src/client/component/scheduler.cpp index 47bda262..2bb37784 100644 --- a/src/client/component/scheduler.cpp +++ b/src/client/component/scheduler.cpp @@ -85,6 +85,7 @@ namespace scheduler volatile bool kill = false; std::thread thread; task_pipeline pipelines[pipeline::count]; + utils::hook::detour r_end_frame_hook; utils::hook::detour g_run_frame_hook; utils::hook::detour main_frame_hook; @@ -162,6 +163,11 @@ namespace scheduler }); } + void post_unpack() override + { + r_end_frame_hook.create(0x142273560_g, r_end_frame_stub); + } + void pre_destroy() override { kill = true;