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