mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +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
|
// Process automatically executed files
|
||||||
FExecList *exec;
|
FExecList *exec;
|
||||||
FArgs *execFiles = new FArgs;
|
FArgs *execFiles = new FArgs;
|
||||||
GameConfig->AddAutoexec(execFiles, gameinfo.ConfigName);
|
if (!(Args->CheckParm("-noautoexec")))
|
||||||
|
GameConfig->AddAutoexec(execFiles, gameinfo.ConfigName);
|
||||||
exec = D_MultiExec(execFiles, NULL);
|
exec = D_MultiExec(execFiles, NULL);
|
||||||
delete execFiles;
|
delete execFiles;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue