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