Revert "allows settext method to work with strings that are not localized (#111)"

This reverts commit e1b91c818d.
This commit is contained in:
fed 2024-04-01 12:37:52 +02:00
parent 1bf2400164
commit e5b99c72ec
No known key found for this signature in database
GPG Key ID: 1D2C630F04722996

View File

@ -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<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
@ -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);