Rename GPLv3 document as LICENSE, to fit better the GitHub requirements. Text / Licen...
[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
9//\r
10\r
11#ifndef __SETTINGS_H__\r
12#define __SETTINGS_H__\r
13\r
14// MAX_PATH isn't defined in stdlib.h on *nix, so we do it here...\r
15#ifdef __GCCUNIX__\r
16#include <limits.h>\r
17#define MAX_PATH _POSIX_PATH_MAX\r
18#else\r
19#include <stdlib.h> // for MAX_PATH on MinGW/Darwin\r
20// Kludge for Win64\r
21#ifndef MAX_PATH\r
22#define MAX_PATH _MAX_PATH // Urgh.\r
23#endif\r
24#endif\r
25#include <stdint.h>\r
26\r
27#define MaxMemory1BrowserWindow 4\r
28\r
29\r
30// List the erase settings possibilities\r
31typedef enum\r
32{\r
33 SETTINGS_NONE = 0,\r
34 SETTINGS_ALL,\r
35 SETTINGS_UI,\r
36 SETTINGS_ALPINE,\r
37 SETTINGS_DEBUGGER,\r
38 SETTINGS_END\r
39};\r
40\r
41\r
42// functions declarations\r
43extern bool EraseSettings(char *Setting);\r
44\r
45\r
46// Settings struct\r
47struct VJSettings\r
48{\r
49 bool useJoystick;\r
50 int32_t joyport; // Joystick port\r
51 bool hardwareTypeNTSC; // Set to false for PAL, otherwise it is NTSC\r
52 bool useJaguarBIOS;\r
53 bool GPUEnabled;\r
54 bool DSPEnabled;\r
55 bool usePipelinedDSP;\r
56 bool fullscreen;\r
57 bool useOpenGL;\r
58 uint32_t glFilter;\r
59 bool hardwareTypeAlpine; // Alpine mode\r
60 bool softTypeDebugger; // Soft type debugger mode\r
61 bool audioEnabled;\r
62 uint32_t frameSkip;\r
63 uint32_t renderType;\r
64 uint32_t refresh;\r
65 bool allowWritesToROM;\r
66 uint32_t biosType;\r
67 size_t nbrdisasmlines; // Number of lines to show in the M68K tracing window\r
68 bool disasmopcodes;\r
69 bool displayHWlabels;\r
70 bool useFastBlitter;\r
71 bool displayFullSourceFilename;\r
72 size_t nbrmemory1browserwindow; // Number of memory browser windows\r
73 size_t DRAM_size; // DRAM size\r
74\r
75 // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *\r
76\r
77 uint32_t p1KeyBindings[21];\r
78 uint32_t p2KeyBindings[21];\r
79\r
80 // Paths\r
81\r
82 char ROMPath[MAX_PATH];\r
83 char jagBootPath[MAX_PATH];\r
84 char CDBootPath[MAX_PATH];\r
85 char EEPROMPath[MAX_PATH];\r
86 char alpineROMPath[MAX_PATH];\r
87 char debuggerROMPath[MAX_PATH];\r
88 char absROMPath[MAX_PATH];\r
89};\r
90\r
91// Render types\r
92\r
93enum { RT_NORMAL = 0, RT_TV = 1 };\r
94\r
95// BIOS types\r
96\r
97enum { BT_K_SERIES, BT_M_SERIES, BT_STUBULATOR_1, BT_STUBULATOR_2 };\r
98\r
99// Exported variables\r
100\r
101extern VJSettings vjs;\r
102\r
103#endif // __SETTINGS_H__\r