(Settings data) Get rid of fake_settings/fake_extern

This commit is contained in:
Twinaphex 2014-07-20 15:31:23 +02:00
parent 86fa191ae7
commit de3e61a11c
3 changed files with 0 additions and 20 deletions

View File

@ -142,9 +142,6 @@ NSWindowDelegate>
NSMutableArray* thisGroup = nil;
NSMutableArray* thisSubGroup = nil;
self.settings = [NSMutableArray array];
setting_data_load_current();
setting_data = (const rarch_setting_t *)setting_data_get_list();
for (i = 0; setting_data[i].type; i ++)

View File

@ -29,16 +29,6 @@
} \
}
// HACK
struct settings fake_settings;
struct global fake_extern;
void setting_data_load_current(void)
{
memcpy(&fake_settings, &g_settings, sizeof(struct settings));
memcpy(&fake_extern, &g_extern, sizeof(struct global));
}
// Input
static const char* get_input_config_prefix(const rarch_setting_t* setting)
{
@ -140,8 +130,6 @@ void setting_data_reset_setting(const rarch_setting_t* setting)
void setting_data_reset(const rarch_setting_t* settings)
{
const rarch_setting_t *setting;
memset(&fake_settings, 0, sizeof(fake_settings));
memset(&fake_extern, 0, sizeof(fake_extern));
for (setting = settings; setting->type != ST_NONE; setting++)
setting_data_reset_setting(setting);
@ -752,10 +740,6 @@ static void general_change_handler(const void *data)
g_settings.libretro_log_level = *setting->value.unsigned_integer;
}
#define g_settings fake_settings
#define g_extern fake_extern
#define NEXT (list[index++])
#define START_GROUP(NAME) { const char *GROUP_NAME = NAME; NEXT = setting_data_group_setting (ST_GROUP, NAME);
#define END_GROUP() NEXT = setting_data_group_setting (ST_END_GROUP, 0); }

View File

@ -118,7 +118,6 @@ rarch_setting_t setting_data_bind_setting(const char* name, const char* descript
const struct retro_keybind* default_value, const char *group, const char *subgroup);
// These functions operate only on RetroArch's main settings list
void setting_data_load_current(void);
rarch_setting_t* setting_data_get_list(void);
#ifdef APPLE