|
|
1.1 root 1: /*
2: Hatari - options_cpu.h
3:
4: This file is distributed under the GNU Public License, version 2 or at
5: your option any later version. Read the file gpl.txt for details.
6: */
7:
8: #ifndef OPTIONS_CPU_H
9: #define OPTIONS_CPU_H
10:
11: #define MAX_CUSTOM_MEMORY_ADDRS 2
12:
13: struct uae_prefs {
14: /* int struct strlist *all_lines; */
15:
16: TCHAR description[256];
17: TCHAR info[256];
18: int config_version;
19: TCHAR config_hardware_path[MAX_DPATH];
20: TCHAR config_host_path[MAX_DPATH];
21:
22: bool illegal_mem;
23: bool use_serial;
24: bool serial_demand;
25: bool serial_hwctsrts;
26: bool serial_direct;
27: bool parallel_demand;
28: int parallel_matrix_emulation;
29: bool parallel_postscript_emulation;
30: bool parallel_postscript_detection;
31: int parallel_autoflush_time;
32: TCHAR ghostscript_parameters[256];
33: bool use_gfxlib;
34: bool socket_emu;
35:
36: bool start_debugger;
37: bool start_gui;
38:
39: /*KbdLang keyboard_lang;*/
40:
41: int produce_sound;
42: int sound_stereo;
43: int sound_stereo_separation;
44: int sound_mixed_stereo_delay;
45: int sound_freq;
46: int sound_maxbsiz;
47: int sound_latency;
48: int sound_interpol;
49: int sound_filter;
50: int sound_filter_type;
51: int sound_volume;
52: bool sound_stereo_swap_paula;
53: bool sound_stereo_swap_ahi;
54: bool sound_auto;
55:
56: int comptrustbyte;
57: int comptrustword;
58: int comptrustlong;
59: int comptrustnaddr;
60: bool compnf;
61: bool compfpu;
62: bool comp_midopt;
63: bool comp_lowopt;
64: bool fpu_strict;
65:
66: bool comp_hardflush;
67: bool comp_constjump;
68: bool comp_oldsegv;
69:
70: int cachesize;
71: int optcount[10];
72:
73: bool avoid_cmov;
74:
75: int gfx_display;
76: TCHAR gfx_display_name[256];
77: int gfx_framerate, gfx_autoframerate;
78: /*
79: struct wh gfx_size_win;
80: struct wh gfx_size_fs;
81: struct wh gfx_size;
82: struct wh gfx_size_win_xtra[4];
83: struct wh gfx_size_fs_xtra[4];
84: */
1.1.1.2 ! root 85: bool int_no_unimplemented;
1.1 root 86: bool gfx_autoresolution;
87: bool gfx_scandoubler;
88: int gfx_refreshrate;
89: int gfx_avsync, gfx_pvsync;
90: int gfx_resolution;
91: int gfx_vresolution;
92: int gfx_lores_mode;
93: int gfx_scanlines;
94: int gfx_afullscreen, gfx_pfullscreen;
95: int gfx_xcenter, gfx_ycenter;
96: int gfx_xcenter_pos, gfx_ycenter_pos;
97: int gfx_xcenter_size, gfx_ycenter_size;
98: int gfx_max_horizontal, gfx_max_vertical;
99: int gfx_saturation, gfx_luminance, gfx_contrast, gfx_gamma;
100: bool gfx_blackerthanblack;
101: int gfx_backbuffers;
102: int gfx_api;
103: int color_mode;
104:
105: int gfx_filter;
106: TCHAR gfx_filtershader[MAX_DPATH];
107: TCHAR gfx_filtermask[MAX_DPATH];
108: TCHAR gfx_filteroverlay[MAX_DPATH];
109: /*struct wh gfx_filteroverlay_pos;*/
110: int gfx_filteroverlay_overscan;
111: int gfx_filter_scanlines;
112: int gfx_filter_scanlineratio;
113: int gfx_filter_scanlinelevel;
114: int gfx_filter_horiz_zoom, gfx_filter_vert_zoom;
115: int gfx_filter_horiz_zoom_mult, gfx_filter_vert_zoom_mult;
116: int gfx_filter_horiz_offset, gfx_filter_vert_offset;
117: int gfx_filter_filtermode;
118: int gfx_filter_bilinear;
119: int gfx_filter_noise, gfx_filter_blur;
120: int gfx_filter_saturation, gfx_filter_luminance, gfx_filter_contrast, gfx_filter_gamma;
121: int gfx_filter_keep_aspect, gfx_filter_aspect;
122: int gfx_filter_autoscale;
123:
124: bool immediate_blits;
125: unsigned int chipset_mask;
126: bool ntscmode;
127: bool genlock;
128: int chipset_refreshrate;
129: int collision_level;
130: int leds_on_screen;
131: int keyboard_leds[3];
132: bool keyboard_leds_in_use;
133: int scsi;
134: bool sana2;
135: bool uaeserial;
136: int catweasel;
137: int cpu_idle;
138: bool cpu_cycle_exact;
139: int cpu_clock_multiplier;
140: int cpu_frequency;
141: bool blitter_cycle_exact;
142: int floppy_speed;
143: int floppy_write_length;
144: int floppy_random_bits_min;
145: int floppy_random_bits_max;
146: bool tod_hack;
147: uae_u32 maprom;
148: int turbo_emulation;
149: bool headless;
150:
151: int cs_compatible;
152: int cs_ciaatod;
153: int cs_rtc;
154: int cs_rtc_adjust;
155: int cs_rtc_adjust_mode;
156: bool cs_ksmirror_e0;
157: bool cs_ksmirror_a8;
158: bool cs_ciaoverlay;
159: bool cs_cd32cd;
160: bool cs_cd32c2p;
161: bool cs_cd32nvram;
162: bool cs_cdtvcd;
163: bool cs_cdtvram;
164: int cs_cdtvcard;
165: int cs_ide;
166: bool cs_pcmcia;
167: bool cs_a1000ram;
168: int cs_fatgaryrev;
169: int cs_ramseyrev;
170: int cs_agnusrev;
171: int cs_deniserev;
172: int cs_mbdmac;
173: bool cs_cdtvscsi;
174: bool cs_a2091, cs_a4091;
175: bool cs_df0idhw;
176: bool cs_slowmemisfast;
177: bool cs_resetwarning;
178: bool cs_denisenoehb;
179: bool cs_dipagnus;
180: bool cs_agnusbltbusybug;
181:
182: TCHAR romfile[MAX_DPATH];
183: TCHAR romident[256];
184: TCHAR romextfile[MAX_DPATH];
185: TCHAR romextident[256];
186: TCHAR flashfile[MAX_DPATH];
187: TCHAR cartfile[MAX_DPATH];
188: TCHAR cartident[256];
189: int cart_internal;
190: TCHAR pci_devices[256];
191: TCHAR prtname[256];
192: TCHAR sername[256];
193: TCHAR amaxromfile[MAX_DPATH];
194: TCHAR a2065name[MAX_DPATH];
195: /*struct cdslot cdslots[MAX_TOTAL_SCSI_DEVICES];*/
196: TCHAR quitstatefile[MAX_DPATH];
197: TCHAR statefile[MAX_DPATH];
198: TCHAR inprecfile[MAX_DPATH];
199: int inprecmode;
200:
201: TCHAR path_floppy[256];
202: TCHAR path_hardfile[256];
203: TCHAR path_rom[256];
204:
205: int m68k_speed;
206: int cpu_model;
207: int cpu_level;
208: int mmu_model;
209: int cpu060_revision;
210: int fpu_model;
211: int fpu_revision;
212: bool cpu_compatible;
213: bool address_space_24;
214: bool picasso96_nocustom;
215: int picasso96_modeflags;
216:
217: uae_u32 z3fastmem_size, z3fastmem2_size;
218: uae_u32 z3fastmem_start;
219: uae_u32 z3chipmem_size;
220: uae_u32 z3chipmem_start;
221: uae_u32 fastmem_size;
222: uae_u32 chipmem_size;
223: uae_u32 bogomem_size;
224: uae_u32 mbresmem_low_size;
225: uae_u32 mbresmem_high_size;
226: uae_u32 gfxmem_size;
227: uae_u32 custom_memory_addrs[MAX_CUSTOM_MEMORY_ADDRS];
228: uae_u32 custom_memory_sizes[MAX_CUSTOM_MEMORY_ADDRS];
229:
230: bool kickshifter;
231: bool filesys_no_uaefsdb;
232: bool filesys_custom_uaefsdb;
233: bool mmkeyboard;
234: int uae_hide;
235:
236: int mountitems;
237: /*struct uaedev_config_info mountconfig[MOUNT_CONFIG_SIZE];*/
238:
239: int nr_floppies;
240: /*struct floppyslot floppyslots[4];*/
241: /*TCHAR dfxlist[MAX_SPARE_DRIVES][MAX_DPATH];*/
242: int dfxclickvolume;
243: int dfxclickchannelmask;
244:
245: /* Target specific options */
246:
247: bool win32_middle_mouse;
248: bool win32_logfile;
249: bool win32_notaskbarbutton;
250: bool win32_alwaysontop;
251: bool win32_powersavedisabled;
252: bool win32_minimize_inactive;
253: int win32_statusbar;
254:
255: int win32_active_priority;
256: int win32_inactive_priority;
257: bool win32_inactive_pause;
258: bool win32_inactive_nosound;
259: int win32_iconified_priority;
260: bool win32_iconified_pause;
261: bool win32_iconified_nosound;
262:
263: bool win32_rtgmatchdepth;
264: bool win32_rtgscaleifsmall;
265: bool win32_rtgallowscaling;
266: int win32_rtgscaleaspectratio;
267: int win32_rtgvblankrate;
268: bool win32_borderless;
269: bool win32_ctrl_F11_is_quit;
270: bool win32_automount_removable;
271: bool win32_automount_drives;
272: bool win32_automount_cddrives;
273: bool win32_automount_netdrives;
274: bool win32_automount_removabledrives;
275: int win32_midioutdev;
276: int win32_midiindev;
277: int win32_uaescsimode;
278: int win32_soundcard;
279: int win32_samplersoundcard;
280: bool win32_soundexclusive;
281: bool win32_norecyclebin;
282: int win32_specialkey;
283: int win32_guikey;
284: int win32_kbledmode;
285: TCHAR win32_commandpathstart[MAX_DPATH];
286: TCHAR win32_commandpathend[MAX_DPATH];
287: TCHAR win32_parjoyport0[MAX_DPATH];
288: TCHAR win32_parjoyport1[MAX_DPATH];
289:
290: bool statecapture;
291: int statecapturerate, statecapturebuffersize;
292:
293: /* input */
294:
295: /*struct jport jports[MAX_JPORTS];*/
296: int input_selected_setting;
297: int input_joymouse_multiplier;
298: int input_joymouse_deadzone;
299: int input_joystick_deadzone;
300: int input_joymouse_speed;
301: int input_analog_joystick_mult;
302: int input_analog_joystick_offset;
303: int input_autofire_linecnt;
304: int input_mouse_speed;
305: int input_tablet;
306: bool input_magic_mouse;
307: int input_magic_mouse_cursor;
308: /*
309: struct uae_input_device joystick_settings[MAX_INPUT_SETTINGS][MAX_INPUT_DEVICES];
310: struct uae_input_device mouse_settings[MAX_INPUT_SETTINGS][MAX_INPUT_DEVICES];
311: struct uae_input_device keyboard_settings[MAX_INPUT_SETTINGS][MAX_INPUT_DEVICES];
312: int dongle;
313: */
314: };
315:
316: extern struct uae_prefs currprefs, changed_prefs;
317: extern void fixup_cpu (struct uae_prefs *prefs);
318:
319:
320: extern void check_prefs_changed_cpu (void);
321:
322: #endif /* OPTIONS_CPU_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.