mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
- add -noautoexec
command line parameter to disable the execution of autoexec.cfg files
This commit is contained in:
parent
99ab1e3317
commit
c86715e521
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue