51 PREFS_SCREEN_MODE = 1,
55 PREFS_AUDIO_CHANNELS = 5,
56 PREFS_AUDIO_RESOLUTION = 6,
57 PREFS_AUDIO_SAMPLE_RATE = 7,
58 PREFS_AUDIO_VOLUME = 8,
62 PREFS_DOUBLE_SCREEN = 12,
98 void parse_arguments (
int argc,
char * argv[]);
105 void write_adonthellrc ();
111 bool read_adonthellrc ();
117 char *get_adonthellrc ();
170 #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.
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.