Try to optimize menu_setting_get_label somewhat

This commit is contained in:
twinaphex 2016-10-24 05:11:19 +02:00
parent 2eea70c270
commit f1826ce9ec

View File

@ -819,7 +819,6 @@ void setting_get_string_representation(void *data, char *s, size_t len)
setting->get_string_representation(setting, s, len);
}
/**
* setting_action_start_savestates:
* @data : pointer to setting
@ -1372,8 +1371,8 @@ void menu_setting_get_label(void *data, char *s,
setting = menu_setting_find(list->list[idx].label);
if (setting)
setting_get_string_representation(setting, s, len);
if (setting && setting->get_string_representation)
setting->get_string_representation(setting, s, len);
}
void general_read_handler(void *data)