add a -nooptions parameter to avoid loading OPTIONS lumps embedded into WAD files

This commit is contained in:
Fabian Greffrath 2020-03-17 13:25:51 +01:00
parent f2e4320419
commit 4b75b904d0

View File

@ -2023,6 +2023,12 @@ void M_LoadOptions(void)
{
int lump;
// [FG] avoid loading OPTIONS lumps embedded into WAD files
if (M_CheckParm("-nooptions"))
{
return;
}
if ((lump = W_CheckNumForName("OPTIONS")) != -1)
{
int size = W_LumpLength(lump), buflen = 0;