mirror of
https://github.com/libretro/RetroArch
synced 2025-02-02 14:54:10 +00:00
Cleanups
This commit is contained in:
parent
40998967c3
commit
951686ba59
@ -134,8 +134,7 @@ static int menu_cbs_init_bind_scan_compare_type(menu_file_list_cbs_t *cbs,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int menu_cbs_init_bind_scan(menu_file_list_cbs_t *cbs,
|
int menu_cbs_init_bind_scan(menu_file_list_cbs_t *cbs,
|
||||||
const char *path, const char *label, unsigned type, size_t idx,
|
const char *path, const char *label, unsigned type, size_t idx)
|
||||||
uint32_t label_hash)
|
|
||||||
{
|
{
|
||||||
if (!cbs)
|
if (!cbs)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -179,14 +179,13 @@ static int menu_cbs_init_bind_select_compare_type(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int menu_cbs_init_bind_select_compare_label(menu_file_list_cbs_t *cbs,
|
static int menu_cbs_init_bind_select_compare_label(menu_file_list_cbs_t *cbs,
|
||||||
const char *label, uint32_t hash)
|
const char *label)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int menu_cbs_init_bind_select(menu_file_list_cbs_t *cbs,
|
int menu_cbs_init_bind_select(menu_file_list_cbs_t *cbs,
|
||||||
const char *path, const char *label, unsigned type, size_t idx,
|
const char *path, const char *label, unsigned type, size_t idx)
|
||||||
uint32_t label_hash)
|
|
||||||
{
|
{
|
||||||
if (!cbs)
|
if (!cbs)
|
||||||
return -1;
|
return -1;
|
||||||
@ -210,7 +209,7 @@ int menu_cbs_init_bind_select(menu_file_list_cbs_t *cbs,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (menu_cbs_init_bind_select_compare_label(cbs, label, label_hash) == 0)
|
if (menu_cbs_init_bind_select_compare_label(cbs, label) == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (menu_cbs_init_bind_select_compare_type(cbs, type) == 0)
|
if (menu_cbs_init_bind_select_compare_type(cbs, type) == 0)
|
||||||
|
@ -74,7 +74,7 @@ void menu_cbs_init(void *data,
|
|||||||
|
|
||||||
menu_cbs_init_log(repr_label, "CANCEL", cbs->action_cancel_ident);
|
menu_cbs_init_log(repr_label, "CANCEL", cbs->action_cancel_ident);
|
||||||
|
|
||||||
menu_cbs_init_bind_scan(cbs, path, label, type, idx, label_hash);
|
menu_cbs_init_bind_scan(cbs, path, label, type, idx);
|
||||||
|
|
||||||
menu_cbs_init_log(repr_label, "SCAN", cbs->action_scan_ident);
|
menu_cbs_init_log(repr_label, "SCAN", cbs->action_scan_ident);
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ void menu_cbs_init(void *data,
|
|||||||
|
|
||||||
menu_cbs_init_log(repr_label, "START", cbs->action_start_ident);
|
menu_cbs_init_log(repr_label, "START", cbs->action_start_ident);
|
||||||
|
|
||||||
menu_cbs_init_bind_select(cbs, path, label, type, idx, label_hash);
|
menu_cbs_init_bind_select(cbs, path, label, type, idx);
|
||||||
|
|
||||||
menu_cbs_init_log(repr_label, "SELECT", cbs->action_select_ident);
|
menu_cbs_init_log(repr_label, "SELECT", cbs->action_select_ident);
|
||||||
|
|
||||||
|
@ -159,12 +159,10 @@ int menu_cbs_init_bind_deferred_push(menu_file_list_cbs_t *cbs,
|
|||||||
uint32_t label_hash);
|
uint32_t label_hash);
|
||||||
|
|
||||||
int menu_cbs_init_bind_select(menu_file_list_cbs_t *cbs,
|
int menu_cbs_init_bind_select(menu_file_list_cbs_t *cbs,
|
||||||
const char *path, const char *label, unsigned type, size_t idx,
|
const char *path, const char *label, unsigned type, size_t idx);
|
||||||
uint32_t label_hash);
|
|
||||||
|
|
||||||
int menu_cbs_init_bind_scan(menu_file_list_cbs_t *cbs,
|
int menu_cbs_init_bind_scan(menu_file_list_cbs_t *cbs,
|
||||||
const char *path, const char *label, unsigned type, size_t idx,
|
const char *path, const char *label, unsigned type, size_t idx);
|
||||||
uint32_t label_hash);
|
|
||||||
|
|
||||||
int menu_cbs_init_bind_title(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 *path, const char *label, unsigned type, size_t idx,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user