mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 00:20:38 +00:00
- Added -nostartup switch to disable the more graphical startup screens of Heretic, Hexen,
and Strife. SVN r2175 (trunk)
This commit is contained in:
parent
a16c62c069
commit
a1255c059d
1 changed files with 19 additions and 15 deletions
|
@ -51,6 +51,7 @@
|
||||||
#include "gi.h"
|
#include "gi.h"
|
||||||
#include "w_wad.h"
|
#include "w_wad.h"
|
||||||
#include "s_sound.h"
|
#include "s_sound.h"
|
||||||
|
#include "m_argv.h"
|
||||||
|
|
||||||
// MACROS ------------------------------------------------------------------
|
// MACROS ------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -317,22 +318,25 @@ FStartupScreen *FStartupScreen::CreateInstance(int max_progress)
|
||||||
FStartupScreen *scr = NULL;
|
FStartupScreen *scr = NULL;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
if (gameinfo.gametype == GAME_Hexen)
|
if (!Args->CheckParm("-nostartup"))
|
||||||
{
|
{
|
||||||
scr = new FHexenStartupScreen(max_progress, hr);
|
if (gameinfo.gametype == GAME_Hexen)
|
||||||
}
|
{
|
||||||
else if (gameinfo.gametype == GAME_Heretic)
|
scr = new FHexenStartupScreen(max_progress, hr);
|
||||||
{
|
}
|
||||||
scr = new FHereticStartupScreen(max_progress, hr);
|
else if (gameinfo.gametype == GAME_Heretic)
|
||||||
}
|
{
|
||||||
else if (gameinfo.gametype == GAME_Strife)
|
scr = new FHereticStartupScreen(max_progress, hr);
|
||||||
{
|
}
|
||||||
scr = new FStrifeStartupScreen(max_progress, hr);
|
else if (gameinfo.gametype == GAME_Strife)
|
||||||
}
|
{
|
||||||
if (scr != NULL && FAILED(hr))
|
scr = new FStrifeStartupScreen(max_progress, hr);
|
||||||
{
|
}
|
||||||
delete scr;
|
if (scr != NULL && FAILED(hr))
|
||||||
scr = NULL;
|
{
|
||||||
|
delete scr;
|
||||||
|
scr = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (scr == NULL)
|
if (scr == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue