]> Shamusworld >> Repos - virtualjaguar/blob - src/include/settings.h
Changes to accomodate PAL/NTSC screen heights
[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
28         // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
29         uint16 p1KeyBindings[21];
30         uint16 p2KeyBindings[21];
31
32         // Paths
33         char ROMPath[MAX_PATH];
34         char jagBootPath[MAX_PATH];
35         char CDBootPath[MAX_PATH];
36         char EEPROMPath[MAX_PATH];
37 };
38
39 // Exported functions
40
41 void LoadVJSettings(void);
42 void SaveVJSettings(void);
43
44 // Exported variables
45
46 extern VJSettings vjs;
47
48 #endif  // __SETTINGS_H__