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.
31 #define MaxMemory1BrowserWindow 4
34 // List the erase settings possibilities
46 // Key bindings settings structure
49 //char KBSettingName[100];
50 char KBSettingValue
[100];
51 //char KBSettingDefaultValue[100];
55 // functions declarations
56 extern bool EraseSettings(char *Setting
);
62 bool useJoystick
; // Joystick usage
63 int32_t joyport
; // Joystick port
64 bool hardwareTypeNTSC
; // Set to false for PAL, otherwise it is NTSC
65 bool useJaguarBIOS
; // Use of any Jaguar BIOS
66 bool useRetailBIOS
; // Use of Retail BIOS
67 bool useDevBIOS
; // Use of Development BIOS
68 bool GPUEnabled
; // Use of GPU
69 bool DSPEnabled
; // Use of DSP
71 bool fullscreen
; // Emulator in full screen mode so video output display only
72 bool useOpenGL
; // OpenGL support (always 'true')
74 bool hardwareTypeAlpine
; // Alpine mode
75 bool softTypeDebugger
; // Soft type debugger mode
80 bool allowWritesToROM
; // Allow writing to ROM cartdridge
81 uint32_t biosType
; // Bios type used
82 uint32_t jaguarModel
; // Jaguar model
83 size_t nbrdisasmlines
; // Number of lines to show in the M68K tracing window
87 bool displayFullSourceFilename
;
88 bool ELFSectionsCheck
;
89 size_t nbrmemory1browserwindow
; // Number of memory browser windows
90 size_t DRAM_size
; // DRAM size
92 // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
93 uint32_t p1KeyBindings
[21];
94 uint32_t p2KeyBindings
[21];
97 KBSettings KBContent
[100];
100 char ROMPath
[MAX_PATH
];
101 //char jagBootPath[MAX_PATH];
102 //char CDBootPath[MAX_PATH];
103 char EEPROMPath
[MAX_PATH
];
104 char alpineROMPath
[MAX_PATH
];
105 char debuggerROMPath
[MAX_PATH
];
106 char absROMPath
[MAX_PATH
];
107 char screenshotPath
[MAX_PATH
];
108 char sourcefilesearchPaths
[4096];
112 enum { RT_NORMAL
= 0, RT_TV
= 1 };
115 enum { JAG_NULL_SERIES
, JAG_K_SERIES
, JAG_M_SERIES
};
118 enum { BT_NULL
, BT_K_SERIES
, BT_M_SERIES
, BT_STUBULATOR_1
, BT_STUBULATOR_2
};
120 // Exported variables
121 extern VJSettings vjs
;
123 #endif // __SETTINGS_H__