Don't use menu_setting_find in menu_cbs_title.c

This commit is contained in:
twinaphex 2015-08-17 19:47:18 +02:00
parent 927423df89
commit 6093253763

View File

@ -503,13 +503,11 @@ static int action_get_title_input_settings(const char *path, const char *label,
static int menu_cbs_init_bind_title_compare_label(menu_file_list_cbs_t *cbs,
const char *label, uint32_t label_hash, const char *elem1)
{
rarch_setting_t *setting = menu_setting_find(label);
if (setting)
if (cbs->setting)
{
uint32_t parent_group_hash = menu_hash_calculate(setting->parent_group);
uint32_t parent_group_hash = menu_hash_calculate(cbs->setting->parent_group);
if ((parent_group_hash == MENU_VALUE_MAIN_MENU) && setting->type == ST_GROUP)
if ((parent_group_hash == MENU_VALUE_MAIN_MENU) && cbs->setting->type == ST_GROUP)
{
cbs->action_get_title = action_get_title_group_settings;
return 0;