mirror of
https://github.com/libretro/RetroArch
synced 2025-03-05 19:13:45 +00:00
CLeanups
This commit is contained in:
parent
f7648bc95c
commit
f469f40381
@ -37,21 +37,12 @@ int action_refresh_default(file_list_t *list, file_list_t *menu_list)
|
||||
}
|
||||
|
||||
int menu_cbs_init_bind_refresh(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx,
|
||||
const char *elem0, const char *elem1,
|
||||
uint32_t label_hash, uint32_t menu_label_hash)
|
||||
const char *path, const char *label, unsigned type, size_t idx)
|
||||
{
|
||||
if (!cbs)
|
||||
return -1;
|
||||
|
||||
switch (label_hash)
|
||||
{
|
||||
case 0:
|
||||
default:
|
||||
BIND_ACTION_REFRESH(cbs, action_refresh_default);
|
||||
break;
|
||||
}
|
||||
|
||||
BIND_ACTION_REFRESH(cbs, action_refresh_default);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
@ -730,7 +730,7 @@ static int action_get_title_input_binds_list(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)
|
||||
const char *label, uint32_t label_hash)
|
||||
{
|
||||
if (cbs->setting)
|
||||
{
|
||||
@ -1343,7 +1343,6 @@ static int menu_cbs_init_bind_title_compare_type(menu_file_list_cbs_t *cbs,
|
||||
|
||||
int menu_cbs_init_bind_title(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx,
|
||||
const char *elem0, const char *elem1,
|
||||
uint32_t label_hash, uint32_t menu_label_hash)
|
||||
{
|
||||
if (!cbs)
|
||||
@ -1351,7 +1350,7 @@ int menu_cbs_init_bind_title(menu_file_list_cbs_t *cbs,
|
||||
|
||||
BIND_ACTION_GET_TITLE(cbs, action_get_title_default);
|
||||
|
||||
if (menu_cbs_init_bind_title_compare_label(cbs, label, label_hash, elem1) == 0)
|
||||
if (menu_cbs_init_bind_title_compare_label(cbs, label, label_hash) == 0)
|
||||
return 0;
|
||||
|
||||
if (menu_cbs_init_bind_title_compare_type(cbs, type) == 0)
|
||||
|
@ -129,7 +129,7 @@ void menu_cbs_init(void *data,
|
||||
|
||||
menu_cbs_init_log(repr_label, "DEFERRED PUSH", cbs->action_deferred_push_ident);
|
||||
|
||||
menu_cbs_init_bind_refresh(cbs, path, label, type, idx, elem0, elem1, label_hash, menu_label_hash);
|
||||
menu_cbs_init_bind_refresh(cbs, path, label, type, idx);
|
||||
|
||||
menu_cbs_init_log(repr_label, "REFRESH", cbs->action_refresh_ident);
|
||||
|
||||
@ -137,7 +137,7 @@ void menu_cbs_init(void *data,
|
||||
|
||||
menu_cbs_init_log(repr_label, "GET VALUE", cbs->action_get_value_ident);
|
||||
|
||||
menu_cbs_init_bind_title(cbs, path, label, type, idx, elem0, elem1, label_hash, menu_label_hash);
|
||||
menu_cbs_init_bind_title(cbs, path, label, type, idx, label_hash, menu_label_hash);
|
||||
|
||||
menu_cbs_init_log(repr_label, "GET TITLE", cbs->action_get_title_ident);
|
||||
|
||||
|
@ -126,9 +126,7 @@ int menu_cbs_init_bind_right(menu_file_list_cbs_t *cbs,
|
||||
uint32_t label_hash, uint32_t menu_label_hash);
|
||||
|
||||
int menu_cbs_init_bind_refresh(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx,
|
||||
const char *elem0, const char *elem1,
|
||||
uint32_t label_hash, uint32_t menu_label_hash);
|
||||
const char *path, const char *label, unsigned type, size_t idx);
|
||||
|
||||
int menu_cbs_init_bind_get_string_representation(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx,
|
||||
@ -182,7 +180,6 @@ int menu_cbs_init_bind_scan(menu_file_list_cbs_t *cbs,
|
||||
|
||||
int menu_cbs_init_bind_title(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx,
|
||||
const char *elem0, const char *elem1,
|
||||
uint32_t label_hash, uint32_t menu_label_hash);
|
||||
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
|
Loading…
x
Reference in New Issue
Block a user