- add -noautoexec command line parameter to disable the execution of autoexec.cfg files

This commit is contained in:
Rachael Alexanderson 2021-02-14 10:47:00 -05:00
parent 99ab1e3317
commit c86715e521

View file

@ -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;