diff options
author | Simon Howard | 2009-01-07 21:51:37 +0000 |
---|---|---|
committer | Simon Howard | 2009-01-07 21:51:37 +0000 |
commit | ed880ffdea8f9d69b2b3711785ed8cb4ac8fbec2 (patch) | |
tree | 73e52db6b5addcfefd14df3b9eab11f7c46438d1 | |
parent | acd1a13a4f70973d7616df3f6de43f8f79b8e392 (diff) | |
download | chocolate-doom-ed880ffdea8f9d69b2b3711785ed8cb4ac8fbec2.tar.gz chocolate-doom-ed880ffdea8f9d69b2b3711785ed8cb4ac8fbec2.tar.bz2 chocolate-doom-ed880ffdea8f9d69b2b3711785ed8cb4ac8fbec2.zip |
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
-rw-r--r-- | src/w_file.c | 6 |
1 files 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; i<arrlen(wad_file_classes); ++i) + for (i=0; i<arrlen(wad_file_classes); ++i) { result = wad_file_classes[i]->OpenFile(path); |