2 // settings.h: Header file
4 // JPM = Jean-Paul Mari <djipi.mari@gmail.com>
7 // --- ---------- ------------------------------------------------------------
8 // JPM 06/19/2016 Soft debugger support
9 // JPM Sept./2018 Added the new Models and BIOS handler, and a screenshot settings
10 // JPM 10/10/2018 Added search paths in settings
11 // JPM 04/06/2019 Added ELF sections check
14 #ifndef __SETTINGS_H__
15 #define __SETTINGS_H__
17 // MAX_PATH isn't defined in stdlib.h on *nix, so we do it here...
20 #define MAX_PATH _POSIX_PATH_MAX
22 #include <stdlib.h> // for MAX_PATH on MinGW/Darwin
25 #define MAX_PATH _MAX_PATH // Urgh.
30 #define MaxMemory1BrowserWindow 4
33 // List the erase settings possibilities
45 // Key bindings settings structure
48 //char KBSettingName[100];
49 char KBSettingValue
[100];
50 //char KBSettingDefaultValue[100];
54 // functions declarations
55 extern bool EraseSettings(char *Setting
);
61 bool useJoystick
; // Joystick usage
62 int32_t joyport
; // Joystick port
63 bool hardwareTypeNTSC
; // Set to false for PAL, otherwise it is NTSC
64 bool useJaguarBIOS
; // Use of any Jaguar BIOS
65 bool useRetailBIOS
; // Use of Retail BIOS
66 bool useDevBIOS
; // Use of Development BIOS
67 bool GPUEnabled
; // Use of GPU
68 bool DSPEnabled
; // Use of DSP
70 bool fullscreen
; // Emulator in full screen mode so video output display only
71 bool useOpenGL
; // OpenGL support (always 'true')
73 bool hardwareTypeAlpine
; // Alpine mode
74 bool softTypeDebugger
; // Soft type debugger mode
79 bool allowWritesToROM
; // Allow writing to ROM cartdridge
80 uint32_t biosType
; // Bios type used
81 uint32_t jaguarModel
; // Jaguar model
82 size_t nbrdisasmlines
; // Number of lines to show in the M68K tracing window
86 bool displayFullSourceFilename
;
87 bool ELFSectionsCheck
;
88 size_t nbrmemory1browserwindow
; // Number of memory browser windows
89 size_t DRAM_size
; // DRAM size
91 // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
92 uint32_t p1KeyBindings
[21];
93 uint32_t p2KeyBindings
[21];
96 KBSettings KBContent
[100];
99 char ROMPath
[MAX_PATH
];
100 //char jagBootPath[MAX_PATH];
101 //char CDBootPath[MAX_PATH];
102 char EEPROMPath
[MAX_PATH
];
103 char alpineROMPath
[MAX_PATH
];
104 char debuggerROMPath
[MAX_PATH
];
105 char absROMPath
[MAX_PATH
];
106 char screenshotPath
[MAX_PATH
];
107 char sourcefilesearchPaths
[4096];
111 enum { RT_NORMAL
= 0, RT_TV
= 1 };
114 enum { JAG_NULL_SERIES
, JAG_K_SERIES
, JAG_M_SERIES
};
117 enum { BT_NULL
, BT_K_SERIES
, BT_M_SERIES
, BT_STUBULATOR_1
, BT_STUBULATOR_2
};
119 // Exported variables
120 extern VJSettings vjs
;
122 #endif // __SETTINGS_H__