]> icculus.org git repositories - btb/d2x.git/blob - main/config.h
allow specifying file to extract
[btb/d2x.git] / main / config.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14
15
16 #ifndef _CONFIG_H
17 #define _CONFIG_H
18
19 #include "player.h"
20
21 extern int ReadConfigFile(void);
22 extern int WriteConfigFile(void);
23
24 extern char config_last_player[CALLSIGN_LEN+1];
25
26 extern char config_last_mission[];
27
28 extern ubyte Config_digi_volume;
29 extern ubyte Config_midi_volume;
30 #ifdef MACINTOSH
31 typedef struct ConfigInfoStruct
32 {
33         ubyte   mDoNotDisplayOptions;
34         ubyte   mUse11kSounds;
35         ubyte   mDisableSound;
36         ubyte   mDisableMIDIMusic;
37         ubyte   mChangeResolution;
38         ubyte   mDoNotPlayMovies;
39         ubyte   mUserChoseQuit;
40         ubyte   mGameMonitor;
41         ubyte   mAcceleration;                          // allow RAVE level acceleration
42         ubyte   mInputSprockets;                        // allow use of Input Sprocket devices 
43 } ConfigInfo;
44
45 extern ConfigInfo gConfigInfo;
46 extern ubyte Config_master_volume;
47 #endif
48 extern ubyte Config_redbook_volume;
49 extern ubyte Config_control_type;
50 extern ubyte Config_channels_reversed;
51 extern ubyte Config_joystick_sensitivity;
52
53 //values for Config_control_type
54 #define CONTROL_NONE 0
55 #define CONTROL_JOYSTICK 1
56 #define CONTROL_FLIGHTSTICK_PRO 2
57 #define CONTROL_THRUSTMASTER_FCS 3
58 #define CONTROL_GRAVIS_GAMEPAD 4
59 #define CONTROL_MOUSE 5
60 #define CONTROL_CYBERMAN 6
61 #define CONTROL_WINJOYSTICK 7
62
63 #define CONTROL_MAX_TYPES 8
64
65 #endif