From c6be0f0aae1ed2506f9c69fd5f118e44086ecb32 Mon Sep 17 00:00:00 2001 From: Rim Date: Mon, 11 Mar 2024 05:06:07 -0400 Subject: [PATCH] Refactor(branding.cpp): Remove branding functions --- src/client/component/branding.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/client/component/branding.cpp b/src/client/component/branding.cpp index 3d4b64bb..c5eac287 100644 --- a/src/client/component/branding.cpp +++ b/src/client/component/branding.cpp @@ -1,34 +1,15 @@ #include #include "loader/component_loader.hpp" #include "game/game.hpp" -#include "version.hpp" - -#include "scheduler.hpp" - #include namespace branding { namespace { - void draw_branding() - { - constexpr auto x = 4; - constexpr auto y = 0; - constexpr auto scale = 0.45f; - float color[4] = {0.666f, 0.666f, 0.666f, 0.666f}; - - const auto* font = reinterpret_cast(0x141CAC8E0_g)(); - if (!font) return; - - game::R_AddCmdDrawText("", std::numeric_limits::max(), font, static_cast(x), - y + static_cast(font[2]) * scale, - scale, scale, 0.0f, color, game::ITEM_TEXTSTYLE_NORMAL); - } - const char* get_ingame_console_prefix_stub() { - return "T7x > "; + return "T7x >"; } } @@ -36,8 +17,6 @@ namespace branding { void post_unpack() override { - scheduler::loop(draw_branding, scheduler::renderer); - // Change window title prefix utils::hook::copy_string(0x14303F3D8_g, "T7x");