| 980 | */ |
| 981 | |
| 982 | void 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 | ================= |
no test coverage detected