Skip to content

Commit

Permalink
Implement -norun cmd-line parameter
Browse files Browse the repository at this point in the history
See #816.
  • Loading branch information
bradharding committed Dec 4, 2023
1 parent e33a389 commit 06f6ece
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/m_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,9 +1013,15 @@ void M_LoadCVARs(char *filename)

if (!file)
{
M_SaveCVARs();
C_Output("All settings will be saved in " BOLD("%s") ".", filename);
cvarsloaded = true;

if (M_CheckParm("-norun"))
{
M_SaveCVARs();
exit(0);
}

return;
}

Expand Down

0 comments on commit 06f6ece

Please sign in to comment.