Add some more branding

This commit is contained in:
momo5502 2023-03-18 09:14:54 +01:00
parent c1d6d791c6
commit c7b21d6419
2 changed files with 14 additions and 1 deletions

View File

@ -5,6 +5,8 @@
#include "scheduler.hpp" #include "scheduler.hpp"
#include <utils/hook.hpp>
namespace branding namespace branding
{ {
namespace namespace
@ -23,6 +25,11 @@ namespace branding
y + static_cast<float>(font[2]) * scale, y + static_cast<float>(font[2]) * scale,
scale, scale, 0.0f, color, game::ITEM_TEXTSTYLE_NORMAL); scale, scale, 0.0f, color, game::ITEM_TEXTSTYLE_NORMAL);
} }
const char* get_ingame_console_prefix_stub()
{
return "BOIII> ";
}
} }
struct component final : client_component struct component final : client_component
@ -30,6 +37,12 @@ namespace branding
void post_unpack() override void post_unpack() override
{ {
scheduler::loop(draw_branding, scheduler::renderer); scheduler::loop(draw_branding, scheduler::renderer);
// Change window title prefix
utils::hook::copy_string(0x14303F3D8_g, "BOIII");
// Change ingame console prefix
utils::hook::call(0x141339970_g, get_ingame_console_prefix_stub);
} }
}; };
} }

View File

@ -38,4 +38,4 @@ namespace icon
}; };
} }
//REGISTER_COMPONENT(icon::component) REGISTER_COMPONENT(icon::component)