1
#ifndef _DRIVERS_CONFIGH
8
void SaveFCEUConfig(const char *filename, const CFGSTRUCT *cfgst);
9
void LoadFCEUConfig(const char *filename, CFGSTRUCT *cfgst);
11
//Macros for building CFGSTRUCT structures.
13
// CFGSTRUCT structures must always end with ENDCFGSTRUCT
14
#define ENDCFGSTRUCT { 0,0,0 }
16
//When this macro is used, the config loading/saving code will parse
17
//the new config structure until the end of it is detected, then it
18
//will continue parsing the original config structure.
19
#define ADDCFGSTRUCT(x) { 0,&x,0 }
21
// Oops. The NAC* macros shouldn't have the # in front of the w, but
22
// fixing this would break configuration files of previous versions and it
23
// isn't really hurting much.
25
// Single piece of data(integer).
26
#define AC(x) { #x,&x,sizeof(x)}
27
#define NAC(w,x) { #w,&x,sizeof(x)}
30
#define ACA(x) {#x,x,sizeof(x)}
31
#define NACA(w,x) {#w,x,sizeof(x)}
33
// String(pointer) with automatic memory allocation.
34
#define ACS(x) {#x,&x,0}
35
#define NACS(w,x) {#w,&x,0}
37
#define _DRIVERS_CONFIGH