]> Shamusworld >> Repos - virtualjaguar/blob - src/settings.h
Fixed software loading to load independently of Jaguar ROM space, added new
[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         bool audioEnabled;
32         uint32 frameSkip;
33         uint32 renderType;
34         bool allowWritesToROM;
35
36         // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
37
38         uint32 p1KeyBindings[21];
39         uint32 p2KeyBindings[21];
40
41         // Paths
42
43         char ROMPath[MAX_PATH];
44         char jagBootPath[MAX_PATH];
45         char CDBootPath[MAX_PATH];
46         char EEPROMPath[MAX_PATH];
47         char alpineROMPath[MAX_PATH];
48 };
49
50 // Render types
51
52 enum { RT_NORMAL = 0, RT_TV = 1 };
53
54 // Exported functions
55
56 //void LoadVJSettings(void);
57 //void SaveVJSettings(void);
58
59 // Exported variables
60
61 extern VJSettings vjs;
62
63 #endif  // __SETTINGS_H__