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
13 #ifndef __SETTINGS_H__
14 #define __SETTINGS_H__
16 // MAX_PATH isn't defined in stdlib.h on *nix, so we do it here...
19 #define MAX_PATH _POSIX_PATH_MAX
21 #include <stdlib.h> // for MAX_PATH on MinGW/Darwin
24 #define MAX_PATH _MAX_PATH // Urgh.
29 #define MaxMemory1BrowserWindow 4
32 // List the erase settings possibilities
44 // Key bindings settings structure
47 //char KBSettingName[100];
48 char KBSettingValue
[100];
49 //char KBSettingDefaultValue[100];
53 // functions declarations
54 extern bool EraseSettings(char *Setting
);
60 bool useJoystick
; // Joystick usage
61 int32_t joyport
; // Joystick port
62 bool hardwareTypeNTSC
; // Set to false for PAL, otherwise it is NTSC
63 bool useJaguarBIOS
; // Use of any Jaguar BIOS
64 bool useRetailBIOS
; // Use of Retail BIOS
65 bool useDevBIOS
; // Use of Development BIOS
66 bool GPUEnabled
; // Use of GPU
67 bool DSPEnabled
; // Use of DSP
69 bool fullscreen
; // Emulator in full screen mode so video output display only
70 bool useOpenGL
; // OpenGL support (always 'true')
72 bool hardwareTypeAlpine
; // Alpine mode
73 bool softTypeDebugger
; // Soft type debugger mode
78 bool allowWritesToROM
; // Allow writing to ROM cartdridge
79 uint32_t biosType
; // Bios type used
80 uint32_t jaguarModel
; // Jaguar model
81 size_t nbrdisasmlines
; // Number of lines to show in the M68K tracing window
85 bool displayFullSourceFilename
;
86 size_t nbrmemory1browserwindow
; // Number of memory browser windows
87 size_t DRAM_size
; // DRAM size
89 // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
90 uint32_t p1KeyBindings
[21];
91 uint32_t p2KeyBindings
[21];
94 KBSettings KBContent
[100];
97 char ROMPath
[MAX_PATH
];
98 //char jagBootPath[MAX_PATH];
99 //char CDBootPath[MAX_PATH];
100 char EEPROMPath
[MAX_PATH
];
101 char alpineROMPath
[MAX_PATH
];
102 char debuggerROMPath
[MAX_PATH
];
103 char absROMPath
[MAX_PATH
];
104 char screenshotPath
[MAX_PATH
];
105 char sourcefilesearchPaths
[4096];
109 enum { RT_NORMAL
= 0, RT_TV
= 1 };
112 enum { JAG_NULL_SERIES
, JAG_K_SERIES
, JAG_M_SERIES
};
115 enum { BT_NULL
, BT_K_SERIES
, BT_M_SERIES
, BT_STUBULATOR_1
, BT_STUBULATOR_2
};
117 // Exported variables
118 extern VJSettings vjs
;
120 #endif // __SETTINGS_H__