mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
Get rid of MENU_ENTRIES_CTL_SETTINGS_GET
This commit is contained in:
parent
74ad3723f9
commit
5de30567a1
@ -4393,14 +4393,6 @@ bool menu_entries_ctl(enum menu_entries_ctl_state state, void *data)
|
||||
{
|
||||
case MENU_ENTRIES_CTL_NEEDS_REFRESH:
|
||||
return MENU_ENTRIES_NEEDS_REFRESH(menu_st);
|
||||
case MENU_ENTRIES_CTL_SETTINGS_GET:
|
||||
{
|
||||
rarch_setting_t **settings = (rarch_setting_t**)data;
|
||||
if (!settings)
|
||||
return false;
|
||||
*settings = menu_st->entries.list_settings;
|
||||
}
|
||||
break;
|
||||
case MENU_ENTRIES_CTL_SET_REFRESH:
|
||||
{
|
||||
bool *nonblocking = (bool*)data;
|
||||
|
@ -38,7 +38,6 @@ RETRO_BEGIN_DECLS
|
||||
enum menu_entries_ctl_state
|
||||
{
|
||||
MENU_ENTRIES_CTL_NONE = 0,
|
||||
MENU_ENTRIES_CTL_SETTINGS_GET,
|
||||
MENU_ENTRIES_CTL_SET_REFRESH,
|
||||
MENU_ENTRIES_CTL_UNSET_REFRESH,
|
||||
MENU_ENTRIES_CTL_NEEDS_REFRESH,
|
||||
|
@ -7108,13 +7108,15 @@ int menu_action_handle_setting(rarch_setting_t *setting,
|
||||
**/
|
||||
rarch_setting_t *menu_setting_find(const char *label)
|
||||
{
|
||||
rarch_setting_t *setting = NULL;
|
||||
rarch_setting_t **list = &setting;
|
||||
rarch_setting_t *setting = NULL;
|
||||
rarch_setting_t **list = &setting;
|
||||
struct menu_state *menu_st;
|
||||
|
||||
if (!label)
|
||||
return NULL;
|
||||
|
||||
menu_entries_ctl(MENU_ENTRIES_CTL_SETTINGS_GET, &setting);
|
||||
menu_st = menu_state_get_ptr();
|
||||
setting = menu_st->entries.list_settings;
|
||||
|
||||
if (!setting)
|
||||
return NULL;
|
||||
@ -7143,13 +7145,15 @@ rarch_setting_t *menu_setting_find(const char *label)
|
||||
|
||||
rarch_setting_t *menu_setting_find_enum(enum msg_hash_enums enum_idx)
|
||||
{
|
||||
rarch_setting_t *setting = NULL;
|
||||
rarch_setting_t **list = &setting;
|
||||
rarch_setting_t *setting = NULL;
|
||||
rarch_setting_t **list = &setting;
|
||||
struct menu_state *menu_st = NULL;
|
||||
|
||||
if (enum_idx == 0)
|
||||
return NULL;
|
||||
|
||||
menu_entries_ctl(MENU_ENTRIES_CTL_SETTINGS_GET, &setting);
|
||||
menu_st = menu_state_get_ptr();
|
||||
setting = menu_st->entries.list_settings;
|
||||
|
||||
if (!setting)
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user