From a1d46ba5944a758288aef89b5e170f280796a8b4 Mon Sep 17 00:00:00 2001 From: BrentVL-1952840 <70229620+Brentdevent@users.noreply.github.com> Date: Sat, 4 Mar 2023 18:09:39 +0100 Subject: [PATCH] Update ui_scripting --- src/client/component/ui_scripting.cpp | 10 +++++----- src/client/game/symbols.hpp | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/client/component/ui_scripting.cpp b/src/client/component/ui_scripting.cpp index baa565b9..b52d8136 100644 --- a/src/client/component/ui_scripting.cpp +++ b/src/client/component/ui_scripting.cpp @@ -454,10 +454,10 @@ namespace ui_scripting utils::hook::call(game::select(0x141D4979A, 0x1403F233A), hks_load_stub); hks_package_require_hook.create(game::select(0x141D28EF0, 0x1403D7FC0), hks_package_require_stub); - ui_cod_init_hook.create(game::select(0x141F298B0, 0x1404A0A50), ui_cod_init_stub); - ui_cod_lobbyui_init_hook.create(game::select(0x141F2C620, 0x1404A1F50), ui_cod_lobbyui_init_stub); - ui_shutdown_hook.create(game::select(0x14270E9C0, 0x1404A1280), ui_shutdown_stub); - lua_cod_getrawfile_hook.create(game::select(0x141F0F880, 0x1404BCB70), lua_cod_getrawfile_stub); + ui_cod_init_hook.create(game::UI_CoD_Init, ui_cod_init_stub); + ui_cod_lobbyui_init_hook.create(game::UI_CoD_LobbyUI_Init, ui_cod_lobbyui_init_stub); + ui_shutdown_hook.create(game::UI_CoD_Shutdown, ui_shutdown_stub); + lua_cod_getrawfile_hook.create(game::select(0x141F0EFE0, 0x1404BCB70), lua_cod_getrawfile_stub); if (game::is_server()) { @@ -507,4 +507,4 @@ namespace ui_scripting }; } -REGISTER_COMPONENT(ui_scripting::component) +REGISTER_COMPONENT_WORKING(ui_scripting::component) diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index 63ce0ff6..48f8b4bd 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -99,9 +99,9 @@ namespace game }; // UI - WEAK symbol UI_CoD_Init{0x141F29010, 0x0}; - WEAK symbol UI_CoD_LobbyUI_Init{0x141F2BD80, 0x0}; - WEAK symbol UI_CoD_Shutdown{0x141F32E10, 0x0}; + WEAK symbol UI_CoD_Init{0x141F29010, 0x1404A0A50}; + WEAK symbol UI_CoD_LobbyUI_Init{0x141F2BD80, 0x1404A1F50}; + WEAK symbol UI_CoD_Shutdown{0x141F32E10, 0x1404A1280}; WEAK symbol UI_AddMenu{0x1427018F0, 0x0}; WEAK symbol UI_CoD_GetRootNameForController{0x141F28940, 0x0}; WEAK symbol Lua_CoD_LoadLuaFile{0x141F11A20, 0x0};