summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/d_main.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2006-12-13 04:44:17 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2006-12-13 04:44:17 +0000
commit7e6f74e429aec0e6fa9041f8647a7bab32eea0c4 (patch)
tree3a937760b7ab8ad4bdf8dd1f0259b91328803f1b /apps/plugins/doom/d_main.c
parent314f3b58f18ccbc8f5a39897681bc8579cd330d1 (diff)
Dehacked and BEX support for Doom - currently only supports a DEHACKED file in a WAD (not as a standalone file yet).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11738 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom/d_main.c')
-rw-r--r--apps/plugins/doom/d_main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/doom/d_main.c b/apps/plugins/doom/d_main.c
index b8c136689a..3dc64875fd 100644
--- a/apps/plugins/doom/d_main.c
+++ b/apps/plugins/doom/d_main.c
@@ -62,9 +62,13 @@
#include "r_draw.h"
#include "r_main.h"
#include "d_main.h"
+#include "d_deh.h" // Ty 04/08/98 - Externalizations
#include "am_map.h"
#include "m_swap.h"
+// DEHacked support - Ty 03/09/97 // CPhipps - const char*'s
+void ProcessDehFile(const char *filename, const char *outfilename, int lumpnum);
+
// CPhipps - removed wadfiles[] stuff
boolean devparm; // started game with -devparm
@@ -78,6 +82,7 @@ boolean clfastparm; // checkparm of -fast
boolean nomonsters; // working -nomonsters
boolean respawnparm; // working -respawn
boolean fastparm; // working -fast
+boolean dehout=false;
boolean singletics = false; // debug flag to cancel adaptiveness
@@ -725,6 +730,9 @@ void D_DoomMainSetup(void)
printf ("W_Init: Init WADfiles.\n");
W_Init();
+ if ((p = W_CheckNumForName("DEHACKED")) != -1) // cph - add dehacked-in-a-wad support
+ ProcessDehFile(NULL, dehout ? NULL : "/dehlog.txt", p);
+
V_InitColorTranslation(); //jff 4/24/98 load color translation lumps
// Check for -file in shareware