]> Shamusworld >> Repos - virtualjaguar/commitdiff
Missing file. ;-)
authorShamus Hammons <jlhamm@acm.org>
Sun, 21 Sep 2003 14:43:30 +0000 (14:43 +0000)
committerShamus Hammons <jlhamm@acm.org>
Sun, 21 Sep 2003 14:43:30 +0000 (14:43 +0000)
src/include/settings.h [new file with mode: 0644]

diff --git a/src/include/settings.h b/src/include/settings.h
new file mode 100644 (file)
index 0000000..4ce5e1f
--- /dev/null
@@ -0,0 +1,47 @@
+//
+// SETTINGS.H: Header file
+//
+
+#ifndef __SETTINGS_H__
+#define __SETTINGS_H__
+
+// MAX_PATH isn't defined in stdlib.h on *nix, so we do it here...
+#ifdef __GCCUNIX__
+#include <limits.h>
+#define MAX_PATH               _POSIX_PATH_MAX
+#endif
+
+// Settings struct
+
+struct VJSettings
+{
+       bool useJoystick;
+       int32 joyport;                                                                  // Joystick port
+       bool hardwareTypeNTSC;                                                  // Set to false for PAL
+       bool useJaguarBIOS;
+       bool DSPEnabled;
+       bool fullscreen;
+       bool useOpenGL;
+       bool usePipelinedDSP;
+
+       // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
+       uint16 p1KeyBindings[21];
+       uint16 p2KeyBindings[21];
+
+       // Paths
+       char ROMPath[MAX_PATH];
+       char jagBootPath[MAX_PATH];
+       char CDBootPath[MAX_PATH];
+       char EEPROMPath[MAX_PATH];
+};
+
+// Exported functions
+
+void LoadVJSettings(void);
+void SaveVJSettings(void);
+
+// Exported variables
+
+extern VJSettings vjs;
+
+#endif // __SETTINGS_H__