From 9981c42b4a8ab3000b22b9acf6ad4b0edd4b0ae7 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 25 Mar 2014 22:39:51 -0400 Subject: Set GUS patch path variable using D_SetVariable. commit 42faefce1fd03 added code to set the GUS patch path automatically when the BFG Edition is installed, but this caused problems because gusconf.c is not included as part of the build for the setup tool. Use D_SetVariable() instead which accomplishes the same thing without a hard dependency. --- src/strife/d_main.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/strife') diff --git a/src/strife/d_main.c b/src/strife/d_main.c index 7cd2387f..6769c8ed 100644 --- a/src/strife/d_main.c +++ b/src/strife/d_main.c @@ -1394,18 +1394,6 @@ void D_DoomMain (void) DEH_Init(); #endif - iwadfile = D_FindIWAD(IWAD_MASK_STRIFE, &gamemission); - - // None found? - - if (iwadfile == NULL) - { - I_Error("Game mode indeterminate. No IWAD file was found. Try\n" - "specifying one with the '-iwad' command line parameter.\n"); - } - - modifiedgame = false; - //! // @vanilla // @@ -1551,6 +1539,18 @@ void D_DoomMain (void) // Save configuration at exit. I_AtExit(M_SaveDefaults, false); + // Find the main IWAD file and load it. + iwadfile = D_FindIWAD(IWAD_MASK_STRIFE, &gamemission); + + // None found? + if (iwadfile == NULL) + { + I_Error("Game mode indeterminate. No IWAD file was found. Try\n" + "specifying one with the '-iwad' command line parameter.\n"); + } + + modifiedgame = false; + if(devparm) // [STRIFE] Devparm only DEH_printf("W_Init: Init WADfiles.\n"); D_AddFile(iwadfile); -- cgit v1.2.3