diff options
-rw-r--r-- | src/w_file.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/w_file.c b/src/w_file.c index 75c2eae4..bd1a99bd 100644 --- a/src/w_file.c +++ b/src/w_file.c @@ -28,6 +28,7 @@ #include "doomdef.h" #include "doomtype.h" +#include "m_argv.h" #include "w_file.h" @@ -57,6 +58,16 @@ wad_file_t *W_OpenFile(char *path) wad_file_t *result; int i; + //! + // Do not use the OS's virtual memory subsystem to map WAD files + // directly into memory. + // + + if (M_CheckParm("-nommap") > 0) + { + return stdc_wad_file.OpenFile(path); + } + // Try all classes in order until we find one that works result = NULL; |