Create a directory for EEPROMs if it doesn't already exist
[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 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 // Key bindings settings structure
43 struct KBSettings
44 {
45 //char KBSettingName[100];
46 char KBSettingValue[100];
47 //char KBSettingDefaultValue[100];
48 };
49
50
51 // functions declarations
52 extern bool EraseSettings(char *Setting);
53
54
55 // Settings struct
56 struct VJSettings
57 {
58 bool useJoystick;
59 int32_t joyport; // Joystick port
60 bool hardwareTypeNTSC; // Set to false for PAL, otherwise it is NTSC
61 bool useJaguarBIOS;
62 bool GPUEnabled;
63 bool DSPEnabled;
64 bool usePipelinedDSP;
65 bool fullscreen;
66 bool useOpenGL; // OpenGL support (always 'true')
67 uint32_t glFilter;
68 bool hardwareTypeAlpine; // Alpine mode
69 bool softTypeDebugger; // Soft type debugger mode
70 bool audioEnabled;
71 uint32_t frameSkip;
72 uint32_t renderType;
73 uint32_t refresh;
74 bool allowWritesToROM;
75 uint32_t biosType;
76 size_t nbrdisasmlines; // Number of lines to show in the M68K tracing window
77 bool disasmopcodes;
78 bool displayHWlabels;
79 bool useFastBlitter;
80 bool displayFullSourceFilename;
81 size_t nbrmemory1browserwindow; // Number of memory browser windows
82 size_t DRAM_size; // DRAM size
83
84 // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
85 uint32_t p1KeyBindings[21];
86 uint32_t p2KeyBindings[21];
87
88 // Keybindings
89 KBSettings KBContent[100];
90
91 // Paths
92 char ROMPath[MAX_PATH];
93 char jagBootPath[MAX_PATH];
94 char CDBootPath[MAX_PATH];
95 char EEPROMPath[MAX_PATH];
96 char alpineROMPath[MAX_PATH];
97 char debuggerROMPath[MAX_PATH];
98 char absROMPath[MAX_PATH];
99 };
100
101 // Render types
102 enum { RT_NORMAL = 0, RT_TV = 1 };
103
104 // BIOS types
105 enum { BT_K_SERIES, BT_M_SERIES, BT_STUBULATOR_1, BT_STUBULATOR_2 };
106
107 // Exported variables
108 extern VJSettings vjs;
109
110 #endif // __SETTINGS_H__