1
2 #include "shared.h"
3
4 t_config config;
5
6
set_config_defaults(void)7 void set_config_defaults(void)
8 {
9 int i;
10
11 /* sound options */
12 config.psg_preamp = 150;
13 config.fm_preamp = 100;
14 config.hq_fm = 1;
15 config.hq_psg = 1;
16 config.filter = 1;
17 config.low_freq = 200;
18 config.high_freq = 8000;
19 config.lg = 100;
20 config.mg = 100;
21 config.hg = 100;
22 config.lp_range = 0x7fff; /* 0.6 in 0.16 fixed point */
23 config.ym2612 = YM2612_DISCRETE;
24 config.ym2413 = 2; /* = AUTO (0 = always OFF, 1 = always ON) */
25 config.ym3438 = 0;
26 config.mono = 0;
27
28 /* system options */
29 config.system = 0; /* = AUTO (or SYSTEM_SG, SYSTEM_MARKIII, SYSTEM_SMS, SYSTEM_SMS2, SYSTEM_GG, SYSTEM_MD) */
30 config.region_detect = 0; /* = AUTO (1 = USA, 2 = EUROPE, 3 = JAPAN/NTSC, 4 = JAPAN/PAL) */
31 config.vdp_mode = 0; /* = AUTO (1 = NTSC, 2 = PAL) */
32 config.master_clock = 0; /* = AUTO (1 = NTSC, 2 = PAL) */
33 config.force_dtack = 0;
34 config.addr_error = 1;
35 config.bios = 0;
36 config.lock_on = 0; /* = OFF (can be TYPE_SK, TYPE_GG & TYPE_AR) */
37 config.ntsc = 0;
38 config.lcd = 0; /* 0.8 fixed point */
39
40 /* display options */
41 config.overscan = 0; /* 3 = all borders (0 = no borders , 1 = vertical borders only, 2 = horizontal borders only) */
42 config.gg_extra = 0; /* 1 = show extended Game Gear screen (256x192) */
43 config.render = 0; /* 1 = double resolution output (only when interlaced mode 2 is enabled) */
44
45 /* controllers options */
46 input.system[0] = SYSTEM_GAMEPAD;
47 input.system[1] = SYSTEM_GAMEPAD;
48 config.gun_cursor[0] = 1;
49 config.gun_cursor[1] = 1;
50 config.invert_mouse = 0;
51 for (i=0;i<MAX_INPUTS;i++)
52 {
53 /* autodetected control pad type */
54 config.input[i].padtype = DEVICE_PAD2B | DEVICE_PAD3B | DEVICE_PAD6B;
55 }
56 }
57