From: Shamus Hammons Date: Sun, 21 Sep 2003 14:43:30 +0000 (+0000) Subject: Missing file. ;-) X-Git-Tag: 1.0.6~4 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12436cc55a8d6772560be762bfdd55c29c3a5ff5;p=virtualjaguar Missing file. ;-) --- diff --git a/src/include/settings.h b/src/include/settings.h new file mode 100644 index 0000000..4ce5e1f --- /dev/null +++ b/src/include/settings.h @@ -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 +#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__