Move structs to configuration.h

This commit is contained in:
twinaphex 2016-07-25 11:23:40 +02:00
parent c87cb567d7
commit 1b057a0c71
2 changed files with 49 additions and 49 deletions

View File

@ -46,55 +46,6 @@
#include "config.h"
#endif
struct config_bool_setting
{
const char *ident;
bool value;
};
struct config_bool_setting_ptr
{
const char *ident;
bool *ptr;
};
struct config_int_setting_ptr
{
const char *ident;
unsigned *ptr;
};
struct config_int_setting
{
const char *ident;
unsigned value;
};
struct config_float_setting_ptr
{
const char *ident;
float *ptr;
};
struct config_float_setting
{
const char *ident;
float value;
};
struct config_string_setting
{
const char *ident;
const char *value;
};
struct config_path_setting
{
const char *ident;
bool defaults;
const char *value;
};
struct defaults g_defaults;
static settings_t *configuration_settings = NULL;

View File

@ -33,6 +33,55 @@ RETRO_BEGIN_DECLS
/* All config related settings go here. */
struct config_bool_setting
{
const char *ident;
bool value;
};
struct config_bool_setting_ptr
{
const char *ident;
bool *ptr;
};
struct config_int_setting_ptr
{
const char *ident;
unsigned *ptr;
};
struct config_int_setting
{
const char *ident;
unsigned value;
};
struct config_float_setting_ptr
{
const char *ident;
float *ptr;
};
struct config_float_setting
{
const char *ident;
float value;
};
struct config_string_setting
{
const char *ident;
const char *value;
};
struct config_path_setting
{
const char *ident;
bool defaults;
const char *value;
};
typedef struct settings
{
video_viewport_t video_viewport_custom;