File: settings.h

package info (click to toggle)
fuse-emulator 1.0.0.1a%2Bdfsg1-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 9,568 kB
  • sloc: ansic: 67,895; sh: 10,265; perl: 3,386; makefile: 787; yacc: 227; lex: 139
file content (243 lines) | stat: -rw-r--r-- 5,975 bytes parent folder | download
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
/* settings.h: Handling configuration settings
   Copyright (c) 2001-2003 Philip Kendall

   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.,
   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

   Author contact information:

   E-mail: philip-fuse@shadowmagic.org.uk

*/

/* This file is autogenerated from settings.dat by settings-header.pl.
   Do not edit unless you know what will happen! */

#include <config.h>

#include <sys/types.h>

#ifndef FUSE_SETTINGS_H
#define FUSE_SETTINGS_H

typedef struct settings_info {

   int accelerate_loader;
   int aspect_hint;
   int auto_load;
   int autosave_settings;
   int beta128;
  char *betadisk_file;
   int bw_tv;
   int competition_code;
   int competition_mode;
   int confirm_actions;
  char *dck_file;
  char *debugger_command;
   int detect_loader;
   int disk_ask_merge;
  char *disk_try_merge;
   int divide_enabled;
  char *divide_master_file;
  char *divide_slave_file;
   int divide_wp;
   int doublescan_mode;
   int drive_40_max_track;
   int drive_80_max_track;
  char *drive_beta128a_type;
  char *drive_beta128b_type;
  char *drive_beta128c_type;
  char *drive_beta128d_type;
  char *drive_opus1_type;
  char *drive_opus2_type;
  char *drive_plus3a_type;
  char *drive_plus3b_type;
  char *drive_plusd1_type;
  char *drive_plusd2_type;
   int embed_snapshot;
   int emulation_speed;
   int fastload;
   int fb_mode;
   int frame_rate;
   int full_screen;
   int fuller;
  char *if2_file;
   int interface1;
   int interface2;
   int issue2;
   int joy_kempston;
   int joy_prompt;
  char *joystick_1;
   int joystick_1_fire_1;
   int joystick_1_fire_10;
   int joystick_1_fire_2;
   int joystick_1_fire_3;
   int joystick_1_fire_4;
   int joystick_1_fire_5;
   int joystick_1_fire_6;
   int joystick_1_fire_7;
   int joystick_1_fire_8;
   int joystick_1_fire_9;
   int joystick_1_output;
  char *joystick_2;
   int joystick_2_fire_1;
   int joystick_2_fire_10;
   int joystick_2_fire_2;
   int joystick_2_fire_3;
   int joystick_2_fire_4;
   int joystick_2_fire_5;
   int joystick_2_fire_6;
   int joystick_2_fire_7;
   int joystick_2_fire_8;
   int joystick_2_fire_9;
   int joystick_2_output;
   int joystick_keyboard_down;
   int joystick_keyboard_fire;
   int joystick_keyboard_left;
   int joystick_keyboard_output;
   int joystick_keyboard_right;
   int joystick_keyboard_up;
   int kempston_mouse;
   int late_timings;
  char *mdr_file;
  char *mdr_file2;
  char *mdr_file3;
  char *mdr_file4;
  char *mdr_file5;
  char *mdr_file6;
  char *mdr_file7;
  char *mdr_file8;
   int mdr_len;
   int mdr_random_len;
   int melodik;
   int mouse_swap_buttons;
   int opus;
  char *opusdisk_file;
   int pal_tv2x;
  char *playback_file;
   int plus3_detect_speedlock;
  char *plus3disk_file;
   int plusd;
  char *plusddisk_file;
   int printer;
  char *printer_graphics_filename;
  char *printer_text_filename;
   int raw_s_net;
  char *record_file;
  char *rom_128_0;
  char *rom_128_1;
  char *rom_16;
  char *rom_48;
  char *rom_beta128;
  char *rom_interface_i;
  char *rom_opus;
  char *rom_pentagon1024_0;
  char *rom_pentagon1024_1;
  char *rom_pentagon1024_2;
  char *rom_pentagon1024_3;
  char *rom_pentagon512_0;
  char *rom_pentagon512_1;
  char *rom_pentagon512_2;
  char *rom_pentagon512_3;
  char *rom_pentagon_0;
  char *rom_pentagon_1;
  char *rom_pentagon_2;
  char *rom_plus2_0;
  char *rom_plus2_1;
  char *rom_plus2a_0;
  char *rom_plus2a_1;
  char *rom_plus2a_2;
  char *rom_plus2a_3;
  char *rom_plus3_0;
  char *rom_plus3_1;
  char *rom_plus3_2;
  char *rom_plus3_3;
  char *rom_plus3e_0;
  char *rom_plus3e_1;
  char *rom_plus3e_2;
  char *rom_plus3e_3;
  char *rom_plusd;
  char *rom_scorpion_0;
  char *rom_scorpion_1;
  char *rom_scorpion_2;
  char *rom_scorpion_3;
  char *rom_spec_se_0;
  char *rom_spec_se_1;
  char *rom_tc2048;
  char *rom_tc2068_0;
  char *rom_tc2068_1;
  char *rom_ts2068_0;
  char *rom_ts2068_1;
   int rs232_handshake;
  char *rs232_rx;
  char *rs232_tx;
   int rzx_autosaves;
   int rzx_compression;
   int simpleide_active;
  char *simpleide_master_file;
  char *simpleide_slave_file;
   int slt_traps;
  char *snapshot;
  char *snet;
   int sound;
  char *sound_device;
   int sound_force_8bit;
   int sound_freq;
   int sound_load;
  char *speaker_type;
  char *start_machine;
  char *start_scaler_mode;
   int statusbar;
   int stereo_ay;
   int strict_aspect_hint;
  char *svga_modes;
  char *tape_file;
   int tape_traps;
   int unittests;
   int volume_ay;
   int volume_beeper;
   int writable_roms;
   int zxatasp_active;
  char *zxatasp_master_file;
  char *zxatasp_slave_file;
   int zxatasp_upload;
   int zxatasp_wp;
   int zxcf_active;
  char *zxcf_pri_file;
   int zxcf_upload;

  int show_help;
  int show_version;

} settings_info;

extern settings_info settings_current;
extern settings_info settings_default;

int settings_init( int *first_arg, int argc, char **argv );
int settings_defaults( settings_info *settings );
int settings_copy( settings_info *dest, settings_info *src );

#define SETTINGS_ROM_COUNT 30
char **settings_get_rom_setting( settings_info *settings, size_t which );

int settings_set_string( char **string_setting, const char *value );

int settings_free( settings_info *settings );

int settings_write_config( settings_info *settings );

int settings_end( void );

#endif				/* #ifndef FUSE_SETTINGS_H */