Skip to content

Commit

Permalink
- add -noautoexec command line parameter to disable the execution o…
Browse files Browse the repository at this point in the history
…f autoexec.cfg files
  • Loading branch information
madame-rachelle committed Feb 14, 2021
1 parent 99ab1e3 commit c86715e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/d_main.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit c86715e

Please sign in to comment.