MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Com_SafeMode

Function Com_SafeMode

code/qcommon/common.cpp:390–402  ·  view source on GitHub ↗

=================== Com_SafeMode Check for "safe" on the command line, which will skip loading of openjk_sp.cfg =================== */

Source from the content-addressed store, hash-verified

388===================
389*/
390qboolean Com_SafeMode( void ) {
391 int i;
392
393 for ( i = 0 ; i < com_numConsoleLines ; i++ ) {
394 Cmd_TokenizeString( com_consoleLines[i] );
395 if ( !Q_stricmp( Cmd_Argv(0), "safe" )
396 || !Q_stricmp( Cmd_Argv(0), "cvar_restart" ) ) {
397 com_consoleLines[i][0] = 0;
398 return qtrue;
399 }
400 }
401 return qfalse;
402}
403
404
405/*

Callers 2

Com_ExecuteCfgFunction · 0.70
FS_RestartFunction · 0.70

Calls 3

Q_stricmpFunction · 0.85
Cmd_TokenizeStringFunction · 0.70
Cmd_ArgvFunction · 0.70

Tested by

no test coverage detected