From 2bfd7c43fee19b16da7d0a0354765fc8e8a4dfc0 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 18 Apr 2010 21:29:42 +0000 Subject: Split out WAD command line parsing code into common code shared between games. Subversion-branch: /branches/raven-branch Subversion-revision: 1910 --- src/heretic/d_main.c | 147 +-------------------------------------------------- 1 file changed, 2 insertions(+), 145 deletions(-) (limited to 'src/heretic/d_main.c') diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c index 5fa2d5f9..6b589d02 100644 --- a/src/heretic/d_main.c +++ b/src/heretic/d_main.c @@ -46,7 +46,7 @@ #include "m_controls.h" #include "p_local.h" #include "s_sound.h" -#include "w_merge.h" +#include "w_main.h" #include "v_video.h" #define STARTUP_WINDOW_X 17 @@ -908,150 +908,7 @@ void D_DoomMain(void) } D_AddFile(iwadfile); - -#ifdef FEATURE_WAD_MERGE - - // Merged PWADs are loaded first, because they are supposed to be - // modified IWADs. - - //! - // @arg - // @category mod - // - // Simulates the behavior of deutex's -merge option, merging a PWAD - // into the main IWAD. Multiple files may be specified. - // - - p = M_CheckParm("-merge"); - - if (p > 0) - { - for (p = p + 1; p - // @category mod - // - // Simulates the behavior of NWT's -merge option. Multiple files - // may be specified. - - p = M_CheckParm("-nwtmerge"); - - if (p > 0) - { - for (p = p + 1; p - // @category mod - // - // Simulates the behavior of NWT's -af option, merging flats into - // the main IWAD directory. Multiple files may be specified. - // - - p = M_CheckParm("-af"); - - if (p > 0) - { - for (p = p + 1; p - // @category mod - // - // Simulates the behavior of NWT's -as option, merging sprites - // into the main IWAD directory. Multiple files may be specified. - // - - p = M_CheckParm("-as"); - - if (p > 0) - { - for (p = p + 1; p - // @category mod - // - // Equivalent to "-af -as ". - // - - p = M_CheckParm("-aa"); - - if (p > 0) - { - for (p = p + 1; p