shithub: choc

Download patch

ref: 5ac790ac6430c6b353909caf43194888f2d4adb3
parent: 2e972bf61670cfad176de8abdd1808cb72ea2a81
author: Simon Howard <fraggle@gmail.com>
date: Tue Sep 7 14:13:14 EDT 2010

Use strife1.wad as IWAD, and strife.cfg as the main config file (not
default.cfg). Add banner string from strife1.exe and set appropriate
name in title bar.

Subversion-branch: /branches/strife-branch
Subversion-revision: 2035

--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -644,34 +644,11 @@
 
 static char *banners[] = 
 {
-    // doom1.wad
-    "                            "
-    "DOOM Shareware Startup v%i.%i"
-    "                           ",
-    // doom.wad
-    "                            "
-    "DOOM Registered Startup v%i.%i"
-    "                           ",
-    // Registered DOOM uses this
-    "                          "
-    "DOOM System Startup v%i.%i"
-    "                          ",
-    // doom.wad (Ultimate DOOM)
-    "                         "
-    "The Ultimate DOOM Startup v%i.%i"
-    "                        ",
-    // doom2.wad
-    "                         "
-    "DOOM 2: Hell on Earth v%i.%i"
-    "                           ",
-    // tnt.wad
-    "                     "
-    "DOOM 2: TNT - Evilution v%i.%i"
-    "                           ",
-    // plutonia.wad
-    "                   "
-    "DOOM 2: Plutonia Experiment v%i.%i"
-    "                           ",
+    // strife1.wad:
+
+    "                      "
+    "STRIFE:  Quest for the Sigil v1.31"
+    "                                 "
 };
 
 //
@@ -817,38 +794,7 @@
 
 void D_SetGameDescription(void)
 {
-    gamedescription = "Unknown";
-
-    if (gamemission == doom)
-    {
-        // Doom 1.  But which version?
-
-        if (gamemode == retail)
-        {
-            // Ultimate Doom
-
-            gamedescription = GetGameName("The Ultimate DOOM");
-        } 
-        else if (gamemode == registered)
-        {
-            gamedescription = GetGameName("DOOM Registered");
-        }
-        else if (gamemode == shareware)
-        {
-            gamedescription = GetGameName("DOOM Shareware");
-        }
-    }
-    else
-    {
-        // Doom 2 of some kind.  But which mission?
-
-        if (gamemission == doom2)
-            gamedescription = GetGameName("DOOM 2: Hell on Earth");
-        else if (gamemission == pack_plut)
-            gamedescription = GetGameName("DOOM 2: Plutonia Experiment"); 
-        else if (gamemission == pack_tnt)
-            gamedescription = GetGameName("DOOM 2: TNT - Evilution");
-    }
+    gamedescription = GetGameName("Strife: Quest for the Sigil");
 }
 
 static void SetSaveGameDir(char *iwad_filename)
@@ -1230,7 +1176,7 @@
     DEH_Init();
 #endif
 
-    iwadfile = D_FindIWAD(IWAD_MASK_DOOM, &gamemission);
+    iwadfile = D_FindIWAD(IWAD_MASK_STRIFE, &gamemission);
 
     // None found?
 
@@ -1362,7 +1308,7 @@
     // Load configuration files before initialising other subsystems.
     // haleyjd 08/22/2010: [STRIFE] - use strife.cfg
     printf(DEH_String("M_LoadDefaults: Load system defaults.\n"));
-    M_SetConfigFilenames("default.cfg", PROGRAM_PREFIX "strife.cfg");
+    M_SetConfigFilenames("strife.cfg", PROGRAM_PREFIX "strife.cfg");
     D_BindVariables();
     M_LoadDefaults();