(Menu drivers) Start setting up setting pointers

This commit is contained in:
twinaphex 2015-01-31 17:19:12 +01:00
parent 7c6736ae4d
commit 04d54be8df
5 changed files with 40 additions and 19 deletions

View File

@ -385,12 +385,14 @@ static void glui_frame(void)
const char *path = NULL, *entry_label = NULL;
unsigned type = 0, w = 0;
bool selected = false;
rarch_setting_t *setting = NULL;
menu_list_get_at_offset(driver.menu->menu_list->selection_buf, i, &path,
&entry_label, &type);
rarch_setting_t *setting = (rarch_setting_t*)setting_data_find_setting(
setting = (rarch_setting_t*)setting_data_find_setting(
driver.menu->list_settings,
driver.menu->menu_list->selection_buf->list[i].label);
(void)setting;
disp_set_label(driver.menu->menu_list->selection_buf, &w, type, i, label,

View File

@ -439,10 +439,11 @@ static void rgui_render(void)
const char *path = NULL, *entry_label = NULL;
unsigned type = 0, w = 0;
bool selected = false;
rarch_setting_t *setting = NULL;
menu_list_get_at_offset(driver.menu->menu_list->selection_buf, i, &path,
&entry_label, &type);
rarch_setting_t *setting = (rarch_setting_t*)setting_data_find_setting(
setting = (rarch_setting_t*)setting_data_find_setting(
driver.menu->list_settings,
driver.menu->menu_list->selection_buf->list[i].label);
(void)setting;

View File

@ -230,10 +230,16 @@ static void rmenu_render(void)
const char *path = NULL, *entry_label = NULL;
unsigned type = 0, w = 0;
bool selected = false;
rarch_setting_t *setting = NULL;
menu_list_get_at_offset(menu->menu_list->selection_buf, i,
&path, &entry_label, &type);
setting = (rarch_setting_t*)setting_data_find_setting(
driver.menu->list_settings,
driver.menu->menu_list->selection_buf->list[i].label);
(void)setting;
disp_set_label(menu->menu_list->selection_buf, &w, type, i, label,
type_str, sizeof(type_str),
entry_label, path,

View File

@ -582,10 +582,16 @@ static void rmenu_xui_render(void)
char type_str[PATH_MAX_LENGTH], path_buf[PATH_MAX_LENGTH];
const char *path = NULL, *entry_label = NULL;
unsigned type = 0, w = 0;
rarch_setting_t *setting = NULL;
menu_list_get_at_offset(driver.menu->menu_list->selection_buf, i, &path,
&entry_label, &type);
setting = (rarch_setting_t*)setting_data_find_setting(
driver.menu->list_settings,
driver.menu->menu_list->selection_buf->list[i].label);
(void)setting;
disp_set_label(driver.menu->menu_list->selection_buf,
&w, type, i, label,
type_str, sizeof(type_str),

View File

@ -877,10 +877,16 @@ static void xmb_draw_items(file_list_t *list, file_list_t *stack,
const char *path = NULL, *entry_label = NULL;
unsigned type = 0, w = 0;
xmb_node_t *node = NULL;
rarch_setting_t *setting = NULL;
menu_list_get_at_offset(list, i, &path, &entry_label, &type);
node = (xmb_node_t*)file_list_get_userdata_at_offset(list, i);
setting = (rarch_setting_t*)setting_data_find_setting(
driver.menu->list_settings,
driver.menu->menu_list->selection_buf->list[i].label);
(void)setting;
disp_set_label(list, &w, type, i, label,
val_buf, sizeof(val_buf),
entry_label, path,