mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-08 05:51:26 +00:00
90ea0c3f6f
all files loaded with '-file' are scanned for this lump. This lump is read before any WAD initialization takes place, in particular the IWAD is not yet loaded at this time. This allows PWADs the option to specify an IWAD they want to run with and optionally autoload external resource WADs. - Fixed a few places where FixPathSeperator was called with a locked FString buffer. It's better to use the FString version of this function instead. SVN r2073 (trunk)
112 lines
2.5 KiB
C++
112 lines
2.5 KiB
C++
// Emacs style mode select -*- C++ -*-
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
// $Id:$
|
|
//
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
//
|
|
// This source is available for distribution and/or modification
|
|
// only under the terms of the DOOM Source Code License as
|
|
// published by id Software. All rights reserved.
|
|
//
|
|
// The source is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
|
|
// for more details.
|
|
//
|
|
// $Log:$
|
|
//
|
|
// DESCRIPTION:
|
|
// System specific interface stuff.
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
#ifndef __D_MAIN__
|
|
#define __D_MAIN__
|
|
|
|
#include "doomtype.h"
|
|
#include "gametype.h"
|
|
|
|
struct event_t;
|
|
|
|
//
|
|
// D_DoomMain()
|
|
// Not a globally visible function, just included for source reference,
|
|
// calls all startup code, parses command line options.
|
|
// If not overrided by user input, calls N_AdvanceDemo.
|
|
//
|
|
void D_DoomMain (void);
|
|
|
|
|
|
void D_Display ();
|
|
|
|
|
|
//
|
|
// BASE LEVEL
|
|
//
|
|
void D_PageTicker (void);
|
|
void D_PageDrawer (void);
|
|
void D_AdvanceDemo (void);
|
|
void D_StartTitle (void);
|
|
bool D_AddFile (TArray<FString> &wadfiles, const char *file, bool check = true, int position = -1);
|
|
|
|
|
|
// [RH] Set this to something to draw an icon during the next screen refresh.
|
|
extern const char *D_DrawIcon;
|
|
|
|
|
|
enum EIWADType
|
|
{
|
|
IWAD_Doom2TNT,
|
|
IWAD_Doom2Plutonia,
|
|
IWAD_Hexen,
|
|
IWAD_HexenDK,
|
|
IWAD_HexenDemo,
|
|
IWAD_Doom2,
|
|
IWAD_HereticShareware,
|
|
IWAD_HereticExtended,
|
|
IWAD_Heretic,
|
|
IWAD_DoomShareware,
|
|
IWAD_UltimateDoom,
|
|
IWAD_DoomRegistered,
|
|
IWAD_Strife,
|
|
IWAD_StrifeTeaser,
|
|
IWAD_StrifeTeaser2,
|
|
IWAD_FreeDoom,
|
|
IWAD_FreeDoomU,
|
|
IWAD_FreeDoom1,
|
|
IWAD_FreeDM,
|
|
IWAD_Blasphemer,
|
|
IWAD_ChexQuest,
|
|
IWAD_ChexQuest3,
|
|
IWAD_ActionDoom2,
|
|
IWAD_Harmony,
|
|
IWAD_Custom,
|
|
|
|
NUM_IWAD_TYPES
|
|
};
|
|
|
|
struct WadStuff
|
|
{
|
|
WadStuff() : Type(IWAD_Doom2TNT) {}
|
|
|
|
FString Path;
|
|
EIWADType Type;
|
|
};
|
|
|
|
struct IWADInfo
|
|
{
|
|
const char *Name; // Title banner text for this IWAD
|
|
const char *Autoname; // Name of autoload ini section for this IWAD
|
|
DWORD FgColor; // Foreground color for title banner
|
|
DWORD BkColor; // Background color for title banner
|
|
EGameType gametype; // which game are we playing?
|
|
const char *MapInfo; // Base mapinfo to load
|
|
int flags;
|
|
};
|
|
|
|
extern const IWADInfo IWADInfos[NUM_IWAD_TYPES];
|
|
extern EIWADType gameiwad;
|
|
|
|
#endif
|