mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Don't use menu_setting_find in menu_cbs_title.c
This commit is contained in:
parent
927423df89
commit
6093253763
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user