From 4f170ca1cf4ddf60bd169aff953cc3ba999e2c10 Mon Sep 17 00:00:00 2001 From: Skull Merlin <86374920+skkuull@users.noreply.github.com> Date: Mon, 28 Feb 2022 02:53:44 +0200 Subject: [PATCH] Update renderer.cpp --- src/client/component/renderer.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/client/component/renderer.cpp b/src/client/component/renderer.cpp index 7459dead..dd99e69e 100644 --- a/src/client/component/renderer.cpp +++ b/src/client/component/renderer.cpp @@ -60,20 +60,18 @@ namespace renderer r_init_draw_method_hook.create(SELECT_VALUE(0x1404BD140, 0x1405C46E0), &r_init_draw_method_stub); r_update_front_end_dvar_options_hook.create(SELECT_VALUE(0x1404F8870, 0x1405FF9E0), &r_update_front_end_dvar_options_stub); - // TODO: find singleplayer addresses. unless they are different, i could not find it in R_RegisterDvars :| - // use "saved" flags for "r_normalMap" - utils::hook::set(SELECT_VALUE(0x0, 0x1405D460E), game::DVAR_FLAG_SAVED); + utils::hook::set(SELECT_VALUE(0x1404CF5CA, 0x1405D460E), game::DVAR_FLAG_SAVED); // use "saved" flags for "r_specularMap" - utils::hook::set(SELECT_VALUE(0x0, 0x1405D4639), game::DVAR_FLAG_SAVED); + utils::hook::set(SELECT_VALUE(0x1404CF5F5, 0x1405D4639), game::DVAR_FLAG_SAVED); // use "saved" flags for "r_specOccMap" - utils::hook::set(SELECT_VALUE(0x0, 0x1405D4664), game::DVAR_FLAG_SAVED); + utils::hook::set(SELECT_VALUE(0x1404CF620, 0x1405D4664), game::DVAR_FLAG_SAVED); } }; } -#ifdef DEBUG +#ifdef DEUBG REGISTER_COMPONENT(renderer::component) #endif \ No newline at end of file