Browse Source

engine: add host_lowmemorymode cvar to indicate low memory mode level

pull/2/head
Alibek Omarov 3 years ago
parent
commit
ffea7d9729
  1. 1
      engine/common/host.c

1
engine/common/host.c

@ -1102,6 +1102,7 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa @@ -1102,6 +1102,7 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa
build = Cvar_Get( "buildnum", va( "%i", Q_buildnum_compat()), FCVAR_READ_ONLY, "returns a current build number" );
ver = Cvar_Get( "ver", va( "%i/%s (hw build %i)", PROTOCOL_VERSION, XASH_COMPAT_VERSION, Q_buildnum_compat()), FCVAR_READ_ONLY, "shows an engine version" );
Cvar_Get( "host_ver", va( "%i %s %s %s %s", Q_buildnum(), XASH_VERSION, Q_buildos(), Q_buildarch(), Q_buildcommit() ), FCVAR_READ_ONLY, "detailed info about this build" );
Cvar_Get( "host_lowmemorymode", va( "%i", XASH_LOW_MEMORY ), FCVAR_READ_ONLY, "indicates if engine compiled for low RAM consumption (0 - normal, 1 - low engine limits, 2 - low protocol limits)" );
Mod_Init();
NET_Init();

Loading…
Cancel
Save