From 4b75b904d0ea8b472ecabd1f35a0810ed395a9b3 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Tue, 17 Mar 2020 13:25:51 +0100 Subject: [PATCH] add a -nooptions parameter to avoid loading OPTIONS lumps embedded into WAD files --- Source/m_misc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/m_misc.c b/Source/m_misc.c index 9b46a7c5..9d43a8df 100644 --- a/Source/m_misc.c +++ b/Source/m_misc.c @@ -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;