Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/src/pc/configfile.h
7857 views
1
#ifndef CONFIGFILE_H
2
#define CONFIGFILE_H
3
4
enum ConfigOptionType {
5
CONFIG_TYPE_BOOL,
6
CONFIG_TYPE_UINT,
7
CONFIG_TYPE_SINT,
8
CONFIG_TYPE_FLOAT,
9
CONFIG_TYPE_SECTION
10
};
11
12
struct ConfigOption {
13
const char *name;
14
enum ConfigOptionType type;
15
union {
16
bool *boolValue;
17
unsigned int *uintValue;
18
int *sintValue;
19
float *floatValue;
20
};
21
};
22
23
void configfile_load(const char *filename);
24
void configfile_save(const char *filename);
25
26
#endif
27
28