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