From 8c896c9bdb634ba6d841be256b4a8155c3aab2bc Mon Sep 17 00:00:00 2001 From: Skull Merlin <86374920+skkuull@users.noreply.github.com> Date: Sat, 28 May 2022 23:19:09 +0300 Subject: [PATCH] sp addresses --- src/client/component/dvars.cpp | 2 +- src/client/component/renderer.cpp | 4 ++-- src/client/game/symbols.hpp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/component/dvars.cpp b/src/client/component/dvars.cpp index 11d19315..3b285f20 100644 --- a/src/client/component/dvars.cpp +++ b/src/client/component/dvars.cpp @@ -503,7 +503,7 @@ namespace dvars dvar_register_string_hook.create(SELECT_VALUE(0x4197E0_b, 0x182BD0_b), &dvar_register_string); dvar_register_vector2_hook.create(SELECT_VALUE(0x4198C0_b, 0x182CB0_b), &dvar_register_vector2); dvar_register_vector3_hook.create(SELECT_VALUE(0x419A00_b, 0x182DB0_b), &dvar_register_vector3); - dvar_register_enum_hook.create(SELECT_VALUE(0x0, 0x182700_b), &dvar_register_enum); + dvar_register_enum_hook.create(SELECT_VALUE(0x419500_b, 0x182700_b), &dvar_register_enum); if (!game::environment::is_sp()) { diff --git a/src/client/component/renderer.cpp b/src/client/component/renderer.cpp index 1a4c2bf6..eed4cd4e 100644 --- a/src/client/component/renderer.cpp +++ b/src/client/component/renderer.cpp @@ -69,8 +69,8 @@ namespace renderer dvars::r_fullbright = dvars::register_int("r_fullbright", 0, 0, 4, game::DVAR_FLAG_SAVED, "Toggles rendering without lighting"); - r_init_draw_method_hook.create(SELECT_VALUE(0x0, 0x669580_b), &r_init_draw_method_stub); - r_update_front_end_dvar_options_hook.create(SELECT_VALUE(0x0, 0x6A78C0_b), &r_update_front_end_dvar_options_stub); + r_init_draw_method_hook.create(SELECT_VALUE(0x5467E0_b, 0x669580_b), &r_init_draw_method_stub); + r_update_front_end_dvar_options_hook.create(SELECT_VALUE(0x583560_b, 0x6A78C0_b), &r_update_front_end_dvar_options_stub); // use "saved" flags dvars::override::register_enum("r_normalMap", game::DVAR_FLAG_SAVED); diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index c7292790..19bb5a28 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -71,7 +71,7 @@ namespace game WEAK symbol Dvar_SetCommand{0x41BAD0, 0x1857D0}; WEAK symbol Dvar_FindVar{0x41A600, 0x183EB0}; - WEAK symbol Dvar_ClearModified{0x0, 0x183D50}; + WEAK symbol Dvar_ClearModified{0x41A4F0, 0x183D50}; WEAK symbol Dvar_GetCombinedString{0x3A7D60, 0x4EA020}; WEAK symbol Dvar_ValueToString{0x41CE00, 0x187000}; WEAK symbol Dvar_Reset{0x41B5F0, 0x185390}; @@ -135,7 +135,7 @@ namespace game WEAK symbol R_TextWidth{0x55C7A0, 0x67F8F0}; WEAK symbol R_GetFontHeight{0x55C5C0, 0x67F710}; WEAK symbol R_GetSomething{0x55BB90, 0x67ECE0}; - WEAK symbol R_SyncRenderThread{0x0, 0x6A78C0}; + WEAK symbol R_SyncRenderThread{0x582F30, 0x6A78C0}; WEAK symbol scr_VmPub{0xC3F4E20, 0xB7AE3C0}; WEAK symbol scr_function_stack{0xC4015C0, 0xB7B8940}; - WEAK symbol gfxDrawMethod{0x0, 0xE9213F0}; + WEAK symbol gfxDrawMethod{0xF7530B0, 0xE9213F0}; WEAK symbol dvarCount{0xC90E550, 0x2999C34}; WEAK symbol dvarPool{0xC90E560, 0x344DF20};