Skip to content

Commit

Permalink
engine: host: add a cvar that indicates whether engine was built with…
Browse files Browse the repository at this point in the history
… --enable-hl25-extended-structs or not
  • Loading branch information
a1batross committed Mar 3, 2025
1 parent 3b51a55 commit 2f5840f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engine/common/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2f5840f

Please # to comment.