sm64pc/src/pc/configfile.h

65 lines
1.8 KiB
C
Raw Normal View History

2020-05-07 20:21:22 +02:00
#ifndef CONFIGFILE_H
#define CONFIGFILE_H
#include <stdbool.h>
2020-05-18 22:31:19 +02:00
#define CONFIGFILE_DEFAULT "sm64config.txt"
2020-05-16 15:09:27 +02:00
#define MAX_BINDS 3
#define MAX_VOLUME 127
#define VOLUME_SHIFT 7
typedef struct {
unsigned int x, y, w, h;
unsigned int vsync;
bool reset;
bool fullscreen;
bool exiting_fullscreen;
bool settings_changed;
} ConfigWindow;
extern ConfigWindow configWindow;
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;
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;
#ifdef EXTERNAL_DATA
extern bool configPrecacheRes;
#endif
#ifdef BETTERCAMERA
extern unsigned int configCameraXSens;
extern unsigned int configCameraYSens;
extern unsigned int configCameraAggr;
extern unsigned int configCameraPan;
extern unsigned int configCameraDegrade;
extern bool configCameraInvertX;
extern bool configCameraInvertY;
extern bool configEnableCamera;
extern bool configCameraMouse;
#endif
2020-05-19 08:24:51 +02:00
extern bool configHUD;
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);
const char *configfile_name(void);
2020-05-07 20:21:22 +02:00
#endif