]> Shamusworld >> Repos - virtualjaguar/blob - src/include/settings.h
Added 'Alpine' hardware type
[virtualjaguar] / src / include / settings.h
1 //
2 // SETTINGS.H: Header file
3 //
4
5 #ifndef __SETTINGS_H__
6 #define __SETTINGS_H__
7
8 // MAX_PATH isn't defined in stdlib.h on *nix, so we do it here...
9 #ifdef __GCCUNIX__
10 #include <limits.h>
11 #define MAX_PATH                _POSIX_PATH_MAX
12 #endif
13
14 // Settings struct
15
16 struct VJSettings
17 {
18         bool useJoystick;
19         int32 joyport;                                                                  // Joystick port
20         bool hardwareTypeNTSC;                                                  // Set to false for PAL
21         bool useJaguarBIOS;
22         bool DSPEnabled;
23         bool usePipelinedDSP;
24         bool fullscreen;
25         bool useOpenGL;
26         uint32 glFilter;
27         bool hardwareTypeAlpine;
28
29         // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
30         uint16 p1KeyBindings[21];
31         uint16 p2KeyBindings[21];
32
33         // Paths
34         char ROMPath[MAX_PATH];
35         char jagBootPath[MAX_PATH];
36         char CDBootPath[MAX_PATH];
37         char EEPROMPath[MAX_PATH];
38
39         // Internal global stuff
40 //      uint32 ROMType;
41 };
42
43 // ROM Types
44 //enum { RT_CARTRIDGE, RT_
45
46 // Exported functions
47
48 void LoadVJSettings(void);
49 void SaveVJSettings(void);
50
51 // Exported variables
52
53 extern VJSettings vjs;
54
55 #endif  // __SETTINGS_H__