wscript: add an option to request and accept any servers

This commit is contained in:
Alibek Omarov 2023-08-08 09:23:23 +03:00
parent 72fe214f49
commit 3168e5ccf0
3 changed files with 7 additions and 1 deletions

2
3rdparty/mainui vendored

@ -1 +1 @@
Subproject commit 92c6c37507e108190d1a464ccd39dfb62932aad5
Subproject commit 5fa2c6f62c9037370b75373cdd89d65479524b56

View File

@ -1589,7 +1589,9 @@ size_t CL_BuildMasterServerScanRequest( char *buf, size_t size, qboolean nat )
info[0] = 0;
#ifndef XASH_ALL_SERVERS
Info_SetValueForKey( info, "gamedir", GI->gamefolder, remaining );
#endif
Info_SetValueForKey( info, "clver", XASH_VERSION, remaining ); // let master know about client version
Info_SetValueForKey( info, "nat", nat ? "1" : "0", remaining );

View File

@ -135,6 +135,9 @@ def options(opt):
grp.add_option('--enable-tests', action = 'store_true', dest = 'TESTS', default = False,
help = 'enable building standalone tests (does not enable engine tests!) [default: %default]')
# a1ba: special option for me
grp.add_option('--debug-all-servers', action='store_true', dest='ALL_SERVERS', default=False, help='')
grp = opt.add_option_group('Renderers options')
grp.add_option('--enable-all-renderers', action='store_true', dest='ALL_RENDERERS', default=False,
@ -357,6 +360,7 @@ def configure(conf):
conf.env.GAMEDIR = conf.options.GAMEDIR
conf.define('XASH_GAMEDIR', conf.options.GAMEDIR)
conf.define_cond('XASH_ALL_SERVERS', conf.options.ALL_SERVERS)
# check if we can use C99 stdint
conf.define('STDINT_H', 'stdint.h' if conf.check_cc(header_name='stdint.h', mandatory=False) else 'pstdint.h')