diff --git a/configuration.c b/configuration.c index d06f49f570..e83bd56760 100644 --- a/configuration.c +++ b/configuration.c @@ -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) \ diff --git a/configuration.h b/configuration.h index a405ea86f2..e0b78dd2e7 100644 --- a/configuration.h +++ b/configuration.h @@ -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;