2 Skelton for retropc emulator
4 Author : Takeda.Toshiya
14 #include <sys/param.h>
17 #define _MAX_PATH 2048
24 #define EMU_LOG_CPU1 0x00000001
25 #define EMU_LOG_CPU2 0x00000002
26 #define EMU_LOG_CPU3 0x00000004
27 #define EMU_LOG_CPU4 0x00000008
28 #define EMU_LOG_FLOPPY 0x00000010
29 #define EMU_LOG_CMT 0x00000020
30 #define EMU_LOG_QD 0x00000040
31 #define EMU_LOG_CART 0x00000080
32 #define EMU_LOG_BINARY 0x00000100
33 #define EMU_LOG_LASERDISC 0x00000200
34 #define EMU_LOG_DISPLAY 0x00001000
35 #define EMU_LOG_SOUND 0x00002000
36 #define EMU_LOG_KEYBOARD 0x00004000
37 #define EMU_LOG_IO 0x00008000
38 #define EMU_LOG_MEMORY 0x00010000
39 #define EMU_LOG_USR1 0x00020000
40 #define EMU_LOG_USR2 0x00040000
41 #define EMU_LOG_USR3 0x00080000
42 #define EMU_LOG_USR4 0x00100000
43 #define EMU_LOG_USR5 0x00200000
44 #define EMU_LOG_USR6 0x00400000
45 #define EMU_LOG_USR7 0x00800000
46 #define EMU_LOG_USR8 0x01000000
47 #define EMU_LOG_USR9 0x02000000
48 #define EMU_LOG_USR10 0x04000000
49 #define EMU_LOG_GUI 0x08000000
50 #define EMU_LOG_DEBUG 0x10000000
51 #define EMU_LOG_INFO 0x20000000
52 #define EMU_LOG_WARNING 0x40000000
53 #define EMU_LOG_GENERAL 0x80000000
57 #if defined(USE_CART2)
59 #elif defined(USE_CART1)
65 #elif defined(USE_FD7)
67 #elif defined(USE_FD6)
69 #elif defined(USE_FD5)
71 #elif defined(USE_FD4)
73 #elif defined(USE_FD3)
75 #elif defined(USE_FD2)
77 #elif defined(USE_FD1)
83 #elif defined(USE_QD1)
87 #if defined(USE_BINARY_FILE2)
89 #elif defined(USE_BINARY_FILE1)
95 void load_config(const _TCHAR* config_path);
96 void save_config(const _TCHAR* config_path);
97 void save_config_state(void *f);
98 bool load_config_state(void *f);
113 #ifdef USE_DEVICE_TYPE
116 #ifdef USE_DRIVE_TYPE
120 bool correct_disk_timing[16];
121 bool ignore_disk_crc[16];
126 bool direct_load_mzt;
132 _TCHAR initial_cart_dir[_MAX_PATH];
133 _TCHAR recent_cart_path[MAX_CART][MAX_HISTORY][_MAX_PATH];
136 _TCHAR initial_disk_dir[_MAX_PATH];
137 _TCHAR recent_disk_path[MAX_FD][MAX_HISTORY][_MAX_PATH];
140 _TCHAR initial_quickdisk_dir[_MAX_PATH];
141 _TCHAR recent_quickdisk_path[MAX_QD][MAX_HISTORY][_MAX_PATH];
144 _TCHAR initial_tape_dir[_MAX_PATH];
145 _TCHAR recent_tape_path[MAX_HISTORY][_MAX_PATH];
147 #ifdef USE_LASER_DISC
148 _TCHAR initial_laser_disc_dir[_MAX_PATH];
149 _TCHAR recent_laser_disc_path[MAX_HISTORY][_MAX_PATH];
151 #ifdef USE_BINARY_FILE1
152 _TCHAR initial_binary_dir[_MAX_PATH];
153 _TCHAR recent_binary_path[MAX_BINARY][MAX_HISTORY][_MAX_PATH];
155 #ifdef USE_SCREEN_ROTATE
166 #ifdef USE_MONITOR_TYPE
169 #ifdef USE_CRT_FILTER
179 int general_sound_level;
180 #ifdef USE_MULTIPLE_SOUNDCARDS
181 int sound_device_level[USE_MULTIPLE_SOUNDCARDS];
183 bool multiple_speakers; // Effext if multiple sound boards : TRUE = not monoral.
185 bool use_opengl_scanline;
186 bool opengl_scanline_vert;
187 bool opengl_scanline_horiz;
189 bool use_opengl_filters;
190 int opengl_filter_num;
192 #ifdef USE_SOUND_DEVICE_TYPE
193 int sound_device_type;
195 _TCHAR fmgen_dll_path[_MAX_PATH];
199 bool use_direct_input;
202 bool swap_joy_buttons;
206 int printer_device_type;
207 _TCHAR printer_dll_path[_MAX_PATH];
211 extern config_t config;
213 #if defined(_USE_AGAR) || defined(_USE_QT)