diff --git a/src/client/component/patches.cpp b/src/client/component/patches.cpp index dc219cf8..f55b2725 100644 --- a/src/client/component/patches.cpp +++ b/src/client/component/patches.cpp @@ -21,7 +21,6 @@ namespace patches utils::hook::detour live_get_map_index_hook; utils::hook::detour content_do_we_have_content_pack_hook; utils::hook::detour init_network_dvars_hook; - utils::hook::detour g_find_config_string_index_hook; std::string get_login_username() { @@ -226,12 +225,6 @@ namespace patches { //init_network_dvars_hook.invoke(dvar); } - - unsigned int g_find_config_string_index_stub(const char* name, unsigned int start, unsigned int max, int create, const char* errormsg) - { - create = 1; - return g_find_config_string_index_hook.invoke(name, start, max, create, errormsg); - } } class component final : public component_interface @@ -239,9 +232,6 @@ namespace patches public: void post_unpack() override { - // allows settext method to work with strings that are not localized - g_find_config_string_index_hook.create(0x5E9B80_b, g_find_config_string_index_stub); - // register custom dvars com_register_common_dvars_hook.create(0xBADF30_b, com_register_common_dvars_stub);