XenevaOS
Loading...
Searching...
No Matches
d_iwad.h
Go to the documentation of this file.
1//
2// Copyright(C) 2005-2014 Simon Howard
3//
4// This program is free software; you can redistribute it and/or
5// modify it under the terms of the GNU General Public License
6// as published by the Free Software Foundation; either version 2
7// of the License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// DESCRIPTION:
15// Find IWAD and initialize according to IWAD type.
16//
17
18
19#ifndef __D_IWAD__
20#define __D_IWAD__
21
22#include "d_mode.h"
23
24#define IWAD_MASK_DOOM ((1 << doom) \
25 | (1 << doom2) \
26 | (1 << pack_tnt) \
27 | (1 << pack_plut) \
28 | (1 << pack_chex) \
29 | (1 << pack_hacx))
30#define IWAD_MASK_HERETIC (1 << heretic)
31#define IWAD_MASK_HEXEN (1 << hexen)
32#define IWAD_MASK_STRIFE (1 << strife)
33
34typedef struct
35{
36 char *name;
40} iwad_t;
41
42char *D_FindWADByName(char *filename);
43char *D_TryFindWADByName(char *filename);
44char *D_FindIWAD(int mask, GameMission_t *mission);
45const iwad_t **D_FindAllIWADs(int mask);
50
51#endif
52
char * D_TryFindWADByName(char *filename)
Definition d_iwad.c:679
char * D_SaveGameIWADName(GameMission_t gamemission)
Definition d_iwad.c:794
void D_CheckCorrectIWAD(GameMission_t mission)
char * D_FindIWAD(int mask, GameMission_t *mission)
Definition d_iwad.c:702
const iwad_t ** D_FindAllIWADs(int mask)
Definition d_iwad.c:755
char * D_FindWADByName(char *filename)
Definition d_iwad.c:628
char * D_SuggestIWADName(GameMission_t mission, GameMode_t mode)
Definition d_iwad.c:818
char * D_SuggestGameName(GameMission_t mission, GameMode_t mode)
Definition d_iwad.c:833
GameMission_t mission
Definition d_mode.c:28
GameMission_t
Definition d_mode.h:28
GameMode_t
Definition d_mode.h:47
GameMission_t gamemission
Definition doomstat.c:26
Definition d_iwad.h:35
char * description
Definition d_iwad.h:39
GameMission_t mission
Definition d_iwad.h:37
char * name
Definition d_iwad.h:36
GameMode_t mode
Definition d_iwad.h:38
#define mode(x)