From 2f5840f65008540770a54529acb1e85ddc6a5b3b Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 3 Mar 2025 22:53:20 +0300 Subject: [PATCH] engine: host: add a cvar that indicates whether engine was built with --enable-hl25-extended-structs or not --- engine/common/host.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/common/host.c b/engine/common/host.c index 2f2ada49..be9ad028 100644 --- a/engine/common/host.c +++ b/engine/common/host.c @@ -1236,6 +1236,14 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa Cvar_Getf( "host_ver", FCVAR_READ_ONLY, "detailed info about this build", "%i " XASH_VERSION " %s %s %s", Q_buildnum(), Q_buildos(), Q_buildarch(), g_buildcommit); Cvar_Getf( "host_lowmemorymode", FCVAR_READ_ONLY, "indicates if engine compiled for low RAM consumption (0 - normal, 1 - low engine limits, 2 - low protocol limits)", "%i", XASH_LOW_MEMORY ); + Cvar_Get( "host_hl25_extended_structs", +#ifdef SUPPORT_HL25_EXTENDED_STRUCTS + "1", +#else + "0", +#endif + FCVAR_READ_ONLY, "indicates if engine was compiled with extended msurface_t struct" ); + Mod_Init(); NET_Init(); NET_InitMasters();