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

Function Com_ExecuteCfg

code/qcommon/common.cpp:982–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980*/
981
982void Com_ExecuteCfg(void)
983{
984 Cbuf_ExecuteText(EXEC_NOW, "exec default.cfg\n");
985 Cbuf_Execute(); // Always execute after exec to prevent text buffer overflowing
986
987 if(!Com_SafeMode())
988 {
989 // skip the q3config.cfg and autoexec.cfg if "safe" is on the command line
990 Cbuf_ExecuteText(EXEC_NOW, "exec " Q3CONFIG_NAME "\n");
991 Cbuf_Execute();
992 Cbuf_ExecuteText(EXEC_NOW, "exec autoexec_sp.cfg\n");
993 Cbuf_Execute();
994 }
995}
996
997/*
998=================

Callers 1

Com_InitFunction · 0.70

Calls 3

Cbuf_ExecuteTextFunction · 0.70
Cbuf_ExecuteFunction · 0.70
Com_SafeModeFunction · 0.70

Tested by

no test coverage detected