From c86715e521309e7bb8d85b51e03cd60d4aacb2f1 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sun, 14 Feb 2021 10:47:00 -0500 Subject: [PATCH] - add `-noautoexec` command line parameter to disable the execution of autoexec.cfg files --- src/d_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 4f0916a728..0f3d122f46 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -3207,7 +3207,8 @@ static int D_DoomMain_Internal (void) // Process automatically executed files FExecList *exec; FArgs *execFiles = new FArgs; - GameConfig->AddAutoexec(execFiles, gameinfo.ConfigName); + if (!(Args->CheckParm("-noautoexec"))) + GameConfig->AddAutoexec(execFiles, gameinfo.ConfigName); exec = D_MultiExec(execFiles, NULL); delete execFiles;