mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Optimize menu_action_handle_setting
This commit is contained in:
parent
ee0a9c9d98
commit
b3f748ba18
@ -601,21 +601,18 @@ static int setting_handler(rarch_setting_t *setting, unsigned action)
|
||||
int menu_action_handle_setting(rarch_setting_t *setting,
|
||||
unsigned type, unsigned action, bool wraparound)
|
||||
{
|
||||
const char *name;
|
||||
menu_displaylist_info_t info = {0};
|
||||
|
||||
if (!setting)
|
||||
return -1;
|
||||
|
||||
name = menu_setting_get_name(setting);
|
||||
|
||||
switch (setting_get_type(setting))
|
||||
{
|
||||
case ST_PATH:
|
||||
if (action == MENU_ACTION_OK)
|
||||
{
|
||||
size_t selection;
|
||||
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
||||
menu_displaylist_info_t info = {0};
|
||||
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
||||
const char *name = menu_setting_get_name(setting);
|
||||
|
||||
if (!menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection))
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user