mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
(Menu) Get rid of info_selection member
This commit is contained in:
parent
c9f8ea5049
commit
e8ef19a663
@ -82,7 +82,6 @@ typedef struct
|
||||
file_list_t *menu_stack;
|
||||
file_list_t *selection_buf;
|
||||
size_t selection_ptr;
|
||||
unsigned info_selection;
|
||||
bool need_refresh;
|
||||
bool msg_force;
|
||||
bool push_start_screen;
|
||||
|
@ -78,7 +78,12 @@ static int menu_info_screen_iterate(unsigned action)
|
||||
setting_data_get_description(current_setting, msg, sizeof(msg));
|
||||
else
|
||||
{
|
||||
switch (driver.menu->info_selection)
|
||||
unsigned info_type;
|
||||
file_list_get_at_offset(driver.menu->selection_buf,
|
||||
driver.menu->selection_ptr, NULL, NULL,
|
||||
&info_type);
|
||||
|
||||
switch (info_type)
|
||||
{
|
||||
case MENU_SETTINGS_SHADER_PRESET:
|
||||
snprintf(msg, sizeof(msg),
|
||||
@ -1455,9 +1460,6 @@ static int menu_settings_iterate(unsigned action)
|
||||
menu_entries_pop();
|
||||
break;
|
||||
case MENU_ACTION_SELECT:
|
||||
file_list_get_at_offset(driver.menu->selection_buf,
|
||||
driver.menu->selection_ptr, NULL, NULL,
|
||||
&driver.menu->info_selection);
|
||||
file_list_push(driver.menu->menu_stack, "", "info_screen",
|
||||
0, driver.menu->selection_ptr);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user