Added the return address information in the call stack
[clinton/Virtual-Jaguar-Rx.git] / src / settings.h
CommitLineData
be44e757
JPM
1//\r
2// settings.h: Header file\r
3//\r
4// JPM = Jean-Paul Mari <djipi.mari@gmail.com>\r
5//\r
6// Who When What\r
7// --- ---------- ------------------------------------------------------------\r
8// JPM 06/19/2016 Soft debugger support\r
f0dd2f7b
JPM
9// JPM Sept./2018 Added the new Models and BIOS handler, and a screenshot settings\r
10// JPM 10/10/2018 Added search paths in settings \r
be44e757
JPM
11//\r
12\r
13#ifndef __SETTINGS_H__\r
14#define __SETTINGS_H__\r
15\r
16// MAX_PATH isn't defined in stdlib.h on *nix, so we do it here...\r
17#ifdef __GCCUNIX__\r
18#include <limits.h>\r
19#define MAX_PATH _POSIX_PATH_MAX\r
20#else\r
21#include <stdlib.h> // for MAX_PATH on MinGW/Darwin\r
22// Kludge for Win64\r
23#ifndef MAX_PATH\r
24#define MAX_PATH _MAX_PATH // Urgh.\r
25#endif\r
26#endif\r
27#include <stdint.h>\r
28\r
29#define MaxMemory1BrowserWindow 4\r
30\r
31\r
32// List the erase settings possibilities\r
024bfc46 33enum\r
be44e757
JPM
34{\r
35 SETTINGS_NONE = 0,\r
36 SETTINGS_ALL,\r
37 SETTINGS_UI,\r
38 SETTINGS_ALPINE,\r
39 SETTINGS_DEBUGGER,\r
40 SETTINGS_END\r
41};\r
42\r
43\r
024bfc46
JPM
44// Key bindings settings structure\r
45struct KBSettings\r
46{\r
47 //char KBSettingName[100];\r
48 char KBSettingValue[100];\r
49 //char KBSettingDefaultValue[100];\r
50};\r
51\r
52\r
be44e757
JPM
53// functions declarations\r
54extern bool EraseSettings(char *Setting);\r
55\r
56\r
57// Settings struct\r
58struct VJSettings\r
59{\r
fe3b257d 60 bool useJoystick; // Joystick usage\r
be44e757
JPM
61 int32_t joyport; // Joystick port\r
62 bool hardwareTypeNTSC; // Set to false for PAL, otherwise it is NTSC\r
bc10fc42
JPM
63 bool useJaguarBIOS; // Use of any Jaguar BIOS\r
64 bool useRetailBIOS; // Use of Retail BIOS\r
65 bool useDevBIOS; // Use of Development BIOS\r
fe3b257d
JPM
66 bool GPUEnabled; // Use of GPU\r
67 bool DSPEnabled; // Use of DSP\r
be44e757 68 bool usePipelinedDSP;\r
fe3b257d 69 bool fullscreen; // Emulator in full screen mode so video output display only\r
024bfc46 70 bool useOpenGL; // OpenGL support (always 'true')\r
be44e757
JPM
71 uint32_t glFilter;\r
72 bool hardwareTypeAlpine; // Alpine mode\r
73 bool softTypeDebugger; // Soft type debugger mode\r
74 bool audioEnabled;\r
75 uint32_t frameSkip;\r
76 uint32_t renderType;\r
77 uint32_t refresh;\r
fe3b257d 78 bool allowWritesToROM; // Allow writing to ROM cartdridge\r
bc10fc42
JPM
79 uint32_t biosType; // Bios type used\r
80 uint32_t jaguarModel; // Jaguar model\r
be44e757
JPM
81 size_t nbrdisasmlines; // Number of lines to show in the M68K tracing window\r
82 bool disasmopcodes;\r
83 bool displayHWlabels;\r
84 bool useFastBlitter;\r
85 bool displayFullSourceFilename;\r
86 size_t nbrmemory1browserwindow; // Number of memory browser windows\r
87 size_t DRAM_size; // DRAM size\r
88\r
89 // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *\r
be44e757
JPM
90 uint32_t p1KeyBindings[21];\r
91 uint32_t p2KeyBindings[21];\r
92\r
024bfc46
JPM
93 // Keybindings\r
94 KBSettings KBContent[100];\r
be44e757 95\r
024bfc46 96 // Paths\r
be44e757 97 char ROMPath[MAX_PATH];\r
fe3b257d
JPM
98 //char jagBootPath[MAX_PATH];\r
99 //char CDBootPath[MAX_PATH];\r
be44e757
JPM
100 char EEPROMPath[MAX_PATH];\r
101 char alpineROMPath[MAX_PATH];\r
102 char debuggerROMPath[MAX_PATH];\r
103 char absROMPath[MAX_PATH];\r
25251f31 104 char screenshotPath[MAX_PATH];\r
f0dd2f7b 105 char sourcefilesearchPaths[4096];\r
be44e757
JPM
106};\r
107\r
108// Render types\r
be44e757
JPM
109enum { RT_NORMAL = 0, RT_TV = 1 };\r
110\r
bc10fc42
JPM
111// Jaguar models\r
112enum { JAG_NULL_SERIES, JAG_K_SERIES, JAG_M_SERIES };\r
113\r
be44e757 114// BIOS types\r
bc10fc42 115enum { BT_NULL, BT_K_SERIES, BT_M_SERIES, BT_STUBULATOR_1, BT_STUBULATOR_2 };\r
be44e757
JPM
116\r
117// Exported variables\r
be44e757
JPM
118extern VJSettings vjs;\r
119\r
120#endif // __SETTINGS_H__\r