54 PREFS_SCREEN_MODE = 1,
58 PREFS_AUDIO_CHANNELS = 5,
59 PREFS_AUDIO_RESOLUTION = 6,
60 PREFS_AUDIO_SAMPLE_RATE = 7,
61 PREFS_AUDIO_VOLUME = 8,
102 void parse_arguments (
int argc,
char * argv[]);
109 void write_adonthellrc ();
115 bool read_adonthellrc ();
121 char *get_adonthellrc ();
179 #endif // __PREFS_H__ Declares some basic types.
FILE * prefsin
The config file opened by the lexical scanner.
string gamedir
Path of the directory that contains the game running at present.
u_int8 audio_sample_rate
The sample rate: 11025 Hz (0), 22050 Hz (1) or 44100 Hz (2)
#define u_int8
8 bits long unsigned integer
string language
Language to use if NLS was compiled in.
int parse_adonthellrc(int &, string &)
Start the lexical scanner to parse the config file, usually fount at ~/.adonthell/adonthellrc.
u_int8 quick_load
Whether the quick-load feature is enabled (1) or not (0)
u_int8 audio_volume
The volume: a value betwen 0 and 100.
u_int8 display
Index of the display to use for fullscreen mode.
string game_name
Name of the game that is running at present.
u_int8 audio_resolution
The resolution: 8 bit (0) or 16 bit (1)
u_int8 audio_channels
The number of channels: mono (0) or stereo (1).
This class contains the engine's configuration read either from the config file or from the command l...
u_int8 screen_mode
Whether the engine shall run in window (0) or fullscreen (1) mode.