From a1255c059d458774fa1761e28d641772cf248ed1 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Wed, 24 Feb 2010 02:58:48 +0000 Subject: [PATCH] - Added -nostartup switch to disable the more graphical startup screens of Heretic, Hexen, and Strife. SVN r2175 (trunk) --- src/win32/st_start.cpp | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/win32/st_start.cpp b/src/win32/st_start.cpp index d343fb2b4..f2a62c4c2 100644 --- a/src/win32/st_start.cpp +++ b/src/win32/st_start.cpp @@ -51,6 +51,7 @@ #include "gi.h" #include "w_wad.h" #include "s_sound.h" +#include "m_argv.h" // MACROS ------------------------------------------------------------------ @@ -317,22 +318,25 @@ FStartupScreen *FStartupScreen::CreateInstance(int max_progress) FStartupScreen *scr = NULL; HRESULT hr; - if (gameinfo.gametype == GAME_Hexen) + if (!Args->CheckParm("-nostartup")) { - scr = new FHexenStartupScreen(max_progress, hr); - } - else if (gameinfo.gametype == GAME_Heretic) - { - scr = new FHereticStartupScreen(max_progress, hr); - } - else if (gameinfo.gametype == GAME_Strife) - { - scr = new FStrifeStartupScreen(max_progress, hr); - } - if (scr != NULL && FAILED(hr)) - { - delete scr; - scr = NULL; + if (gameinfo.gametype == GAME_Hexen) + { + scr = new FHexenStartupScreen(max_progress, hr); + } + else if (gameinfo.gametype == GAME_Heretic) + { + scr = new FHereticStartupScreen(max_progress, hr); + } + else if (gameinfo.gametype == GAME_Strife) + { + scr = new FStrifeStartupScreen(max_progress, hr); + } + if (scr != NULL && FAILED(hr)) + { + delete scr; + scr = NULL; + } } if (scr == NULL) {