]> icculus.org git repositories - btb/d2x.git/blob - main/config.h
implement brightness/palette effects in OGL using SetGammaRamp, much faster than...
[btb/d2x.git] / main / config.h
1 /* $Id: config.h,v 1.2 2003-10-10 09:36:34 btb Exp $ */
2 /*
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
13 */
14
15 /*
16  *
17  * prototype definitions for descent.cfg reading/writing
18  *
19  * Old Log:
20  * Revision 1.3  1995/09/08  17:12:26  allender
21  * added modem tool stuff for prefs file
22  *
23  * Revision 1.2  1995/09/05  08:47:48  allender
24  * prefs file working
25  *
26  * Revision 1.1  1995/05/16  15:55:23  allender
27  * Initial revision
28  *
29  * Revision 2.0  1995/02/27  11:32:48  john
30  * New version 2.0, which has no anonymous unions, builds with
31  * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
32  *
33  * Revision 1.4  1995/02/11  16:20:06  john
34  * Added code to make the default mission be the one last played.
35  *
36  * Revision 1.3  1994/12/08  10:01:41  john
37  * Changed the way the player callsign stuff works.
38  *
39  * Revision 1.2  1994/11/14  17:53:17  allender
40  * extern definitions for ReadConfigFile and WriteConfigFile
41  *
42  * Revision 1.1  1994/11/14  16:56:17  allender
43  * Initial revision
44  *
45  *
46  */
47
48
49 #ifndef _CONFIG_H
50 #define _CONFIG_H
51
52 #include "player.h"
53
54 extern int ReadConfigFile(void);
55 extern int WriteConfigFile(void);
56
57 extern char config_last_player[CALLSIGN_LEN+1];
58
59 extern char config_last_mission[];
60
61 extern ubyte Config_digi_volume;
62 extern ubyte Config_midi_volume;
63 #ifdef MACINTOSH
64 typedef struct ConfigInfoStruct
65 {
66         ubyte   mDoNotDisplayOptions;
67         ubyte   mUse11kSounds;
68         ubyte   mDisableSound;
69         ubyte   mDisableMIDIMusic;
70         ubyte   mChangeResolution;
71         ubyte   mDoNotPlayMovies;
72         ubyte   mUserChoseQuit;
73         ubyte   mGameMonitor;
74         ubyte   mAcceleration;                          // allow RAVE level acceleration
75         ubyte   mInputSprockets;                        // allow use of Input Sprocket devices
76 } ConfigInfo;
77
78 extern ConfigInfo gConfigInfo;
79 extern ubyte Config_master_volume;
80 #endif
81 extern ubyte Config_redbook_volume;
82 extern ubyte Config_control_type;
83 extern ubyte Config_channels_reversed;
84 extern ubyte Config_joystick_sensitivity;
85
86 //values for Config_control_type
87 #define CONTROL_NONE 0
88 #define CONTROL_JOYSTICK 1
89 #define CONTROL_FLIGHTSTICK_PRO 2
90 #define CONTROL_THRUSTMASTER_FCS 3
91 #define CONTROL_GRAVIS_GAMEPAD 4
92 #define CONTROL_MOUSE 5
93 #define CONTROL_CYBERMAN 6
94 #define CONTROL_WINJOYSTICK 7
95
96 #define CONTROL_MAX_TYPES 8
97
98 #endif