From 22e28fa0e71f4ea4b56be74053c513300954d836 Mon Sep 17 00:00:00 2001 From: BrentVL-1952840 <70229620+Brentdevent@users.noreply.github.com> Date: Sat, 4 Mar 2023 19:11:27 +0100 Subject: [PATCH] Fix wrong function hook --- src/client/component/ui_scripting.cpp | 2 +- src/client/game/symbols.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/component/ui_scripting.cpp b/src/client/component/ui_scripting.cpp index b52d8136..c10e4c0a 100644 --- a/src/client/component/ui_scripting.cpp +++ b/src/client/component/ui_scripting.cpp @@ -456,7 +456,7 @@ namespace ui_scripting hks_package_require_hook.create(game::select(0x141D28EF0, 0x1403D7FC0), hks_package_require_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); + ui_shutdown_hook.create(game::select(0x14270DE00, 0x1404A1280), ui_shutdown_stub); lua_cod_getrawfile_hook.create(game::select(0x141F0EFE0, 0x1404BCB70), lua_cod_getrawfile_stub); if (game::is_server()) diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index 48f8b4bd..8365deac 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -101,7 +101,7 @@ namespace game // UI 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_CoD_Shutdown{0x141F32E10, 0x0}; WEAK symbol UI_AddMenu{0x1427018F0, 0x0}; WEAK symbol UI_CoD_GetRootNameForController{0x141F28940, 0x0}; WEAK symbol Lua_CoD_LoadLuaFile{0x141F11A20, 0x0};