renderer pipeline

This commit is contained in:
m 2022-09-17 07:51:34 -05:00
parent 1e8f93e6ea
commit 3a5ecdef29
2 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,8 @@
#include "loader/component_loader.hpp"
#include "game/game.hpp"
#include "scheduler.hpp"
#include <utils/hook.hpp>
#include <version.hpp>
@ -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);
}
};
}

View File

@ -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;