Revert "allows settext method to work with strings that are not localized (#111)"
This reverts commit e1b91c818db801f7e8c55afed9d12cf82a1e22cb.
This commit is contained in:
parent
1bf2400164
commit
e5b99c72ec
@ -21,7 +21,6 @@ namespace patches
|
|||||||
utils::hook::detour live_get_map_index_hook;
|
utils::hook::detour live_get_map_index_hook;
|
||||||
utils::hook::detour content_do_we_have_content_pack_hook;
|
utils::hook::detour content_do_we_have_content_pack_hook;
|
||||||
utils::hook::detour init_network_dvars_hook;
|
utils::hook::detour init_network_dvars_hook;
|
||||||
utils::hook::detour g_find_config_string_index_hook;
|
|
||||||
|
|
||||||
std::string get_login_username()
|
std::string get_login_username()
|
||||||
{
|
{
|
||||||
@ -226,12 +225,6 @@ namespace patches
|
|||||||
{
|
{
|
||||||
//init_network_dvars_hook.invoke<void>(dvar);
|
//init_network_dvars_hook.invoke<void>(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<unsigned int>(name, start, max, create, errormsg);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class component final : public component_interface
|
class component final : public component_interface
|
||||||
@ -239,9 +232,6 @@ namespace patches
|
|||||||
public:
|
public:
|
||||||
void post_unpack() override
|
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
|
// register custom dvars
|
||||||
com_register_common_dvars_hook.create(0xBADF30_b, com_register_common_dvars_stub);
|
com_register_common_dvars_hook.create(0xBADF30_b, com_register_common_dvars_stub);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user