2020-05-07 20:21:22 +02:00
|
|
|
#ifndef CONFIGFILE_H
|
|
|
|
#define CONFIGFILE_H
|
|
|
|
|
2020-05-10 20:39:04 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2020-05-18 22:31:19 +02:00
|
|
|
#define CONFIGFILE_DEFAULT "sm64config.txt"
|
|
|
|
|
2020-06-18 01:20:32 +02:00
|
|
|
#define MAX_BINDS 3
|
|
|
|
#define MAX_VOLUME 127
|
2020-05-10 20:39:04 +02:00
|
|
|
|
2020-05-17 21:17:47 +02:00
|
|
|
typedef struct {
|
|
|
|
unsigned int x, y, w, h;
|
2020-07-09 16:02:43 +02:00
|
|
|
bool vsync;
|
2020-05-17 21:17:47 +02:00
|
|
|
bool reset;
|
2020-05-18 04:29:41 +02:00
|
|
|
bool fullscreen;
|
2020-05-18 04:08:12 +02:00
|
|
|
bool exiting_fullscreen;
|
2020-05-19 01:38:59 +02:00
|
|
|
bool settings_changed;
|
2020-05-17 21:17:47 +02:00
|
|
|
} ConfigWindow;
|
|
|
|
|
|
|
|
extern ConfigWindow configWindow;
|
2020-05-16 12:56:12 +02:00
|
|
|
extern unsigned int configFiltering;
|
2020-05-16 15:09:27 +02:00
|
|
|
extern unsigned int configMasterVolume;
|
2020-06-12 05:39:13 +02:00
|
|
|
extern unsigned int configMusicVolume;
|
2020-06-13 09:16:00 +02:00
|
|
|
extern unsigned int configSfxVolume;
|
|
|
|
extern unsigned int configEnvVolume;
|
2020-05-15 20:38:35 +02:00
|
|
|
extern unsigned int configKeyA[];
|
|
|
|
extern unsigned int configKeyB[];
|
|
|
|
extern unsigned int configKeyStart[];
|
|
|
|
extern unsigned int configKeyL[];
|
|
|
|
extern unsigned int configKeyR[];
|
|
|
|
extern unsigned int configKeyZ[];
|
|
|
|
extern unsigned int configKeyCUp[];
|
|
|
|
extern unsigned int configKeyCDown[];
|
|
|
|
extern unsigned int configKeyCLeft[];
|
|
|
|
extern unsigned int configKeyCRight[];
|
|
|
|
extern unsigned int configKeyStickUp[];
|
|
|
|
extern unsigned int configKeyStickDown[];
|
|
|
|
extern unsigned int configKeyStickLeft[];
|
|
|
|
extern unsigned int configKeyStickRight[];
|
2020-05-29 00:40:36 +02:00
|
|
|
extern unsigned int configStickDeadzone;
|
2020-05-30 13:38:05 +02:00
|
|
|
extern unsigned int configRumbleStrength;
|
2020-06-01 11:13:05 +02:00
|
|
|
#ifdef EXTERNAL_DATA
|
2020-05-25 23:54:51 +02:00
|
|
|
extern bool configPrecacheRes;
|
|
|
|
#endif
|
2020-05-10 20:39:04 +02:00
|
|
|
#ifdef BETTERCAMERA
|
|
|
|
extern unsigned int configCameraXSens;
|
|
|
|
extern unsigned int configCameraYSens;
|
|
|
|
extern unsigned int configCameraAggr;
|
|
|
|
extern unsigned int configCameraPan;
|
2020-05-16 19:28:36 +02:00
|
|
|
extern unsigned int configCameraDegrade;
|
2020-05-10 20:39:04 +02:00
|
|
|
extern bool configCameraInvertX;
|
|
|
|
extern bool configCameraInvertY;
|
|
|
|
extern bool configEnableCamera;
|
|
|
|
extern bool configCameraMouse;
|
2020-06-20 16:22:33 +02:00
|
|
|
extern bool configCameraAnalog;
|
2020-08-15 17:48:08 +02:00
|
|
|
extern bool configBowserCam;
|
2020-05-10 20:39:04 +02:00
|
|
|
#endif
|
2020-05-19 08:24:51 +02:00
|
|
|
extern bool configHUD;
|
2020-06-02 18:44:34 +02:00
|
|
|
extern bool configSkipIntro;
|
2020-06-08 22:48:23 +02:00
|
|
|
#ifdef DISCORDRPC
|
|
|
|
extern bool configDiscordRPC;
|
|
|
|
#endif
|
2020-05-07 20:21:22 +02:00
|
|
|
|
|
|
|
void configfile_load(const char *filename);
|
|
|
|
void configfile_save(const char *filename);
|
2020-05-25 06:17:10 +02:00
|
|
|
const char *configfile_name(void);
|
2020-05-07 20:21:22 +02:00
|
|
|
|
|
|
|
#endif
|