Move structs to configuration.c

This commit is contained in:
twinaphex 2016-09-01 18:53:34 +02:00
parent 8e8ff95139
commit fd7949c9f1
2 changed files with 47 additions and 47 deletions

View File

@ -46,6 +46,53 @@
#include "config.h"
#endif
/* All config related settings go here. */
struct config_bool_setting_ptr
{
const char *ident;
bool *ptr;
bool def_enable;
bool def;
bool handle;
};
struct config_int_setting_ptr
{
const char *ident;
unsigned *ptr;
bool def_enable;
unsigned def;
bool handle;
};
struct config_float_setting_ptr
{
const char *ident;
float *ptr;
bool def_enable;
float def;
bool handle;
};
struct config_array_setting_ptr
{
const char *ident;
char *ptr;
bool def_enable;
const char *def;
bool handle;
};
struct config_path_setting_ptr
{
const char *ident;
char *ptr;
bool def_enable;
char *def;
bool handle;
};
#define GENERAL_SETTING(key, configval, default_enable, default_setting, type, handle_setting) \
{ \
if (count == 0) \

View File

@ -38,53 +38,6 @@ enum override_type
RETRO_BEGIN_DECLS
/* All config related settings go here. */
struct config_bool_setting_ptr
{
const char *ident;
bool *ptr;
bool def_enable;
bool def;
bool handle;
};
struct config_int_setting_ptr
{
const char *ident;
unsigned *ptr;
bool def_enable;
unsigned def;
bool handle;
};
struct config_float_setting_ptr
{
const char *ident;
float *ptr;
bool def_enable;
float def;
bool handle;
};
struct config_array_setting_ptr
{
const char *ident;
char *ptr;
bool def_enable;
const char *def;
bool handle;
};
struct config_path_setting_ptr
{
const char *ident;
char *ptr;
bool def_enable;
char *def;
bool handle;
};
typedef struct settings
{
video_viewport_t video_viewport_custom;