]> Shamusworld >> Repos - virtualjaguar/blob - src/include/settings.h
Small header sanity update
[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 #include "types.h"
14
15 // Settings struct
16
17 struct VJSettings
18 {
19         bool useJoystick;
20         int32 joyport;                                                                  // Joystick port
21         bool hardwareTypeNTSC;                                                  // Set to false for PAL
22         bool useJaguarBIOS;
23         bool DSPEnabled;
24         bool usePipelinedDSP;
25         bool fullscreen;
26         bool useOpenGL;
27         uint32 glFilter;
28         bool hardwareTypeAlpine;
29
30         // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
31         uint16 p1KeyBindings[21];
32         uint16 p2KeyBindings[21];
33
34         // Paths
35         char ROMPath[MAX_PATH];
36         char jagBootPath[MAX_PATH];
37         char CDBootPath[MAX_PATH];
38         char EEPROMPath[MAX_PATH];
39
40         // Internal global stuff
41 //      uint32 ROMType;
42 };
43
44 // ROM Types
45 //enum { RT_CARTRIDGE, RT_
46
47 // Exported functions
48
49 void LoadVJSettings(void);
50 void SaveVJSettings(void);
51
52 // Exported variables
53
54 extern VJSettings vjs;
55
56 #endif  // __SETTINGS_H__