Move structs to configuration.h
This commit is contained in:
parent
c87cb567d7
commit
1b057a0c71
|
@ -46,55 +46,6 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#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;
|
struct defaults g_defaults;
|
||||||
static settings_t *configuration_settings = NULL;
|
static settings_t *configuration_settings = NULL;
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,55 @@ RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
/* All config related settings go here. */
|
/* 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
|
typedef struct settings
|
||||||
{
|
{
|
||||||
video_viewport_t video_viewport_custom;
|
video_viewport_t video_viewport_custom;
|
||||||
|
|
Loading…
Reference in New Issue