-
Notifications
You must be signed in to change notification settings - Fork 0
/
D_main.h
114 lines (95 loc) · 3.42 KB
/
D_main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// Copyright(C) 2000 James Haley
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
//--------------------------------------------------------------------------
//
// DESCRIPTION:
// System specific interface stuff.
//
//-----------------------------------------------------------------------------
#ifndef __D_MAIN__
#define __D_MAIN__
#include "d_event.h"
#include "p_chase.h"
extern char **wadfiles; // killough 11/98
// jff make startskill globally visible
extern skill_t startskill;
extern char *startlevel;
void D_AddFile(char *file);
void D_InsertFile(char *file, int index);
boolean D_HasWadInWadlist(const char *);
void D_ListWads();
void D_ReInitWadfiles();
void D_NewWadLumps(int handle, extra_file_t extra);
void D_DehackedFile(char *fname);
boolean D_AddNewFile(char *s);
char *D_DoomExeDir(void); // killough 2/16/98: path to executable's dir
char *D_DoomExeName(void); // killough 10/98: executable's name
void NormalizeSlashes(char *); // killough 11/98
extern char basesavegame[]; // killough 2/16/98: savegame path
//jff 1/24/98 make command line copies of play modes available
extern boolean clnomonsters; // checkparm of -nomonsters
extern boolean clrespawnparm; // checkparm of -respawn
extern boolean clfastparm; // checkparm of -fast
//jff end of external declaration of command line playmode
extern boolean nosfxparm;
extern boolean nomusicparm;
extern int use_startmap;
extern int detect_finallevel;
extern boolean redrawsbar, redrawborder, redrawdlgdone;
extern int use_continue;
extern boolean v11detected;
// Called by IO functions when input is detected.
void D_PostEvent(event_t* ev);
extern camera_t *camera;
extern char firstlevel[9]; // sf: first level of new wads
//
// BASE LEVEL
//
void D_PageTicker(void);
void D_PageDrawer(void);
void D_AdvanceDemo(void);
void D_StartTitle(void);
void D_DoomMain(void);
void D_Reborn(void);
// sf: display a message to the player: either in text mode or graphics
void usermsg(char *s, ...);
#endif
//----------------------------------------------------------------------------
//
// $Log: d_main.h,v $
// Revision 1.7 1998/05/06 15:32:19 jim
// document g_game.c, change externals
//
// Revision 1.5 1998/05/03 22:27:08 killough
// Add external declarations
//
// Revision 1.4 1998/02/23 04:15:01 killough
// Remove obsolete function prototype
//
// Revision 1.3 1998/02/17 06:10:39 killough
// Add D_DoomExeDir prototype, basesavegame decl.
//
// Revision 1.2 1998/01/26 19:26:28 phares
// First rev with no ^Ms
//
// Revision 1.1.1.1 1998/01/19 14:03:09 rand
// Lee's Jan 19 sources
//
//----------------------------------------------------------------------------