mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Convert more strstrs
This commit is contained in:
parent
1db42a5611
commit
8c7e785661
@ -830,7 +830,8 @@ static int menu_cbs_init_bind_left_compare_label(menu_file_list_cbs_t *cbs,
|
||||
char label_setting[128];
|
||||
label_setting[0] = '\0';
|
||||
|
||||
snprintf(label_setting, sizeof(label_setting), "input_player%d_joypad_index", i + 1);
|
||||
snprintf(label_setting,
|
||||
sizeof(label_setting), "input_player%d_joypad_index", i + 1);
|
||||
|
||||
if (!string_is_equal(label, label_setting))
|
||||
continue;
|
||||
@ -846,7 +847,7 @@ static int menu_cbs_init_bind_left_compare_label(menu_file_list_cbs_t *cbs,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strstr(label, "rdb_entry") || strstr(label, "content_info"))
|
||||
if (strstr(label, "rdb_entry") || string_starts_with(label, "content_info"))
|
||||
{
|
||||
BIND_ACTION_LEFT(cbs, action_left_scroll);
|
||||
}
|
||||
|
@ -971,7 +971,7 @@ static int menu_cbs_init_bind_right_compare_label(menu_file_list_cbs_t *cbs,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strstr(label, "rdb_entry") || strstr(label, "content_info"))
|
||||
if (strstr(label, "rdb_entry") || string_starts_with(label, "content_info"))
|
||||
{
|
||||
BIND_ACTION_RIGHT(cbs, action_right_scroll);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user