mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-06 18:30:39 +00:00
(menu_entries_cbs_ok.c) Fix is_rdb_entry
This commit is contained in:
parent
0594e5aa83
commit
ed208665ec
@ -1707,17 +1707,19 @@ void menu_entries_cbs_init_bind_ok(menu_file_list_cbs_t *cbs,
|
|||||||
{
|
{
|
||||||
rarch_setting_t *setting = menu_setting_find(label);
|
rarch_setting_t *setting = menu_setting_find(label);
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
|
uint32_t elem0_hash = djb2_calculate(elem0);
|
||||||
|
|
||||||
if (!cbs || !menu)
|
if (!cbs || !menu)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
RARCH_LOG("path: %s, label: %s, elem0 : %s, elem1: %s\n", path, label, elem0, elem1);
|
RARCH_LOG("path: %s, label: %s, elem0 : %s, elem1: %s\n", path, label, elem0, elem1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cbs->action_ok = action_ok_lookup_setting;
|
cbs->action_ok = action_ok_lookup_setting;
|
||||||
|
|
||||||
if (elem0[0] != '\0' && (is_rdb_entry(label_hash) == 0))
|
if (elem0[0] != '\0' && (is_rdb_entry(elem0_hash) == 0))
|
||||||
{
|
{
|
||||||
cbs->action_ok = action_ok_rdb_entry_submenu;
|
cbs->action_ok = action_ok_rdb_entry_submenu;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user