From ed880ffdea8f9d69b2b3711785ed8cb4ac8fbec2 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 7 Jan 2009 21:51:37 +0000 Subject: Replace -nommap with -mmap; do not use mmap()ed file access by default. Fixes Plutonia 2, and several other minor things. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1425 --- src/w_file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/w_file.c b/src/w_file.c index bd1a99bd..2a902b07 100644 --- a/src/w_file.c +++ b/src/w_file.c @@ -59,11 +59,11 @@ wad_file_t *W_OpenFile(char *path) int i; //! - // Do not use the OS's virtual memory subsystem to map WAD files + // Use the OS's virtual memory subsystem to map WAD files // directly into memory. // - if (M_CheckParm("-nommap") > 0) + if (M_CheckParm("-mmap") < 0) { return stdc_wad_file.OpenFile(path); } @@ -72,7 +72,7 @@ wad_file_t *W_OpenFile(char *path) result = NULL; - for (i=0; iOpenFile(path); -- cgit v1.2.3