Fix master server dvars
This commit is contained in:
parent
46c09265aa
commit
fc72e1724e
@ -373,16 +373,22 @@ namespace server_list
|
|||||||
public:
|
public:
|
||||||
void post_unpack() override
|
void post_unpack() override
|
||||||
{
|
{
|
||||||
if (!game::environment::is_mp()) return;
|
if (!game::environment::is_sp())
|
||||||
|
|
||||||
scheduler::once([]()
|
|
||||||
{
|
{
|
||||||
// add dvars to change destination master server ip/port
|
scheduler::once([]()
|
||||||
master_server_ip = dvars::register_string("masterServerIP", "master.h1.gg", game::DVAR_FLAG_NONE,
|
{
|
||||||
"IP of the destination master server to connect to");
|
// add dvars to change destination master server ip/port
|
||||||
master_server_port = dvars::register_string("masterServerPort", "20810", game::DVAR_FLAG_NONE,
|
master_server_ip = dvars::register_string("masterServerIP", "master.h1.gg", game::DVAR_FLAG_NONE,
|
||||||
"Port of the destination master server to connect to");
|
"IP of the destination master server to connect to");
|
||||||
}, scheduler::pipeline::main);
|
master_server_port = dvars::register_string("masterServerPort", "20810", game::DVAR_FLAG_NONE,
|
||||||
|
"Port of the destination master server to connect to");
|
||||||
|
}, scheduler::pipeline::main);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!game::environment::is_mp())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
localized_strings::override("PLATFORM_SYSTEM_LINK_TITLE", "SERVER LIST");
|
localized_strings::override("PLATFORM_SYSTEM_LINK_TITLE", "SERVER LIST");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user