From a0edfd28b2fea428a2f66e131ad1e411de8bc4af Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 9 Feb 2023 05:56:11 +0300 Subject: [PATCH] engine: common: host: use DEFAULT_ALLOWCONSOLE macro to set default console state --- engine/common/host.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/engine/common/host.c b/engine/common/host.c index 44a83d09..c3297c96 100644 --- a/engine/common/host.c +++ b/engine/common/host.c @@ -894,12 +894,11 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha host.mempool = Mem_AllocPool( "Zone Engine" ); + host.allow_console = DEFAULT_ALLOWCONSOLE; + // HACKHACK: Quake console is always allowed - // HACKHACK: console is also always allowed on the Switch since we can't really pass command line // TODO: determine if we are running QWrap more reliable -#if !XASH_NSWITCH - if( Sys_CheckParm( "-console" ) || !Q_stricmp( SI.exeName, "quake" ) ) -#endif + if( !host.allow_console && ( Sys_CheckParm( "-console" ) || !Q_stricmp( SI.exeName, "quake" ))) host.allow_console = true; if( Sys_CheckParm( "-dev" ))