mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-09 12:30:41 +00:00
Get rid of more label hash usage
This commit is contained in:
parent
8024dd367e
commit
e83a74528b
@ -465,7 +465,7 @@ static int bind_left_generic(unsigned type, const char *label,
|
||||
}
|
||||
|
||||
static int menu_cbs_init_bind_left_compare_label(menu_file_list_cbs_t *cbs,
|
||||
const char *label, uint32_t label_hash, const char *menu_label)
|
||||
const char *label, const char *menu_label)
|
||||
{
|
||||
|
||||
if (cbs->setting)
|
||||
@ -708,8 +708,7 @@ static int menu_cbs_init_bind_left_compare_type(menu_file_list_cbs_t *cbs,
|
||||
|
||||
int menu_cbs_init_bind_left(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx,
|
||||
const char *menu_label,
|
||||
uint32_t label_hash)
|
||||
const char *menu_label)
|
||||
{
|
||||
if (!cbs)
|
||||
return -1;
|
||||
@ -736,7 +735,7 @@ int menu_cbs_init_bind_left(menu_file_list_cbs_t *cbs,
|
||||
}
|
||||
}
|
||||
|
||||
if (menu_cbs_init_bind_left_compare_label(cbs, label, label_hash, menu_label) == 0)
|
||||
if (menu_cbs_init_bind_left_compare_label(cbs, label, menu_label) == 0)
|
||||
return 0;
|
||||
|
||||
if (menu_cbs_init_bind_left_compare_type(cbs, type, menu_label) == 0)
|
||||
|
@ -575,7 +575,7 @@ static int menu_cbs_init_bind_right_compare_type(menu_file_list_cbs_t *cbs,
|
||||
}
|
||||
|
||||
static int menu_cbs_init_bind_right_compare_label(menu_file_list_cbs_t *cbs,
|
||||
const char *label, uint32_t label_hash, const char *menu_label)
|
||||
const char *label, const char *menu_label)
|
||||
{
|
||||
|
||||
if (cbs->setting)
|
||||
@ -707,8 +707,7 @@ static int menu_cbs_init_bind_right_compare_label(menu_file_list_cbs_t *cbs,
|
||||
|
||||
int menu_cbs_init_bind_right(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx,
|
||||
const char *menu_label,
|
||||
uint32_t label_hash)
|
||||
const char *menu_label)
|
||||
{
|
||||
if (!cbs)
|
||||
return menu_cbs_exit();
|
||||
@ -735,8 +734,7 @@ int menu_cbs_init_bind_right(menu_file_list_cbs_t *cbs,
|
||||
}
|
||||
}
|
||||
|
||||
if (menu_cbs_init_bind_right_compare_label(cbs, label, label_hash, menu_label
|
||||
) == 0)
|
||||
if (menu_cbs_init_bind_right_compare_label(cbs, label, menu_label) == 0)
|
||||
return 0;
|
||||
|
||||
if (menu_cbs_init_bind_right_compare_type(cbs, type, menu_label ) == 0)
|
||||
|
@ -290,13 +290,13 @@ void menu_cbs_init(void *data,
|
||||
|
||||
/* It will try to find a corresponding callback function inside
|
||||
* menu_cbs_left.c, then map this callback to the entry. */
|
||||
menu_cbs_init_bind_left(cbs, path, label, type, idx, menu_label, label_hash);
|
||||
menu_cbs_init_bind_left(cbs, path, label, type, idx, menu_label);
|
||||
|
||||
menu_cbs_init_log(repr_label, "LEFT", cbs->action_left_ident);
|
||||
|
||||
/* It will try to find a corresponding callback function inside
|
||||
* menu_cbs_right.c, then map this callback to the entry. */
|
||||
menu_cbs_init_bind_right(cbs, path, label, type, idx, menu_label, label_hash);
|
||||
menu_cbs_init_bind_right(cbs, path, label, type, idx, menu_label);
|
||||
|
||||
menu_cbs_init_log(repr_label, "RIGHT", cbs->action_right_ident);
|
||||
|
||||
|
@ -176,13 +176,11 @@ int action_right_cheat(unsigned type, const char *label,
|
||||
|
||||
int menu_cbs_init_bind_left(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx,
|
||||
const char *menu_label,
|
||||
uint32_t label_hash);
|
||||
const char *menu_label);
|
||||
|
||||
int menu_cbs_init_bind_right(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx,
|
||||
const char *menu_label,
|
||||
uint32_t label_hash);
|
||||
const char *menu_label);
|
||||
|
||||
int menu_cbs_init_bind_refresh(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx);
|
||||
|
Loading…
Reference in New Issue
Block a user