From fd7949c9f10efd77e7c0df429c5bd77b777b7740 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 1 Sep 2016 18:53:34 +0200 Subject: [PATCH] Move structs to configuration.c --- configuration.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ configuration.h | 47 ----------------------------------------------- 2 files changed, 47 insertions(+), 47 deletions(-) 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;