mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
(CocoaTouch) get_core_title - use menu_list_get_ptr
This commit is contained in:
parent
c018c80d5e
commit
4f493c8e21
@ -803,12 +803,13 @@ void get_core_title(char *title_msg, size_t title_msg_len)
|
|||||||
unsigned type = 0, w = 0;
|
unsigned type = 0, w = 0;
|
||||||
const char *dir = NULL;
|
const char *dir = NULL;
|
||||||
const char *label = NULL;
|
const char *label = NULL;
|
||||||
|
menu_list_t *menu_list = menu_list_get_ptr();
|
||||||
unsigned menu_type = 0;
|
unsigned menu_type = 0;
|
||||||
|
|
||||||
weakSelf = self;
|
weakSelf = self;
|
||||||
menu_list_get_last_stack(menu->menu_list, &dir, &label, &menu_type);
|
menu_list_get_last_stack(menu_list, &dir, &label, &menu_type);
|
||||||
|
|
||||||
menu_list_get_at_offset(menu->menu_list->selection_buf, i, &path,
|
menu_list_get_at_offset(menu_list->selection_buf, i, &path,
|
||||||
&entry_label, &type);
|
&entry_label, &type);
|
||||||
|
|
||||||
// JM: Ideally, this would be simpler because RA would provide a
|
// JM: Ideally, this would be simpler because RA would provide a
|
||||||
@ -818,7 +819,7 @@ void get_core_title(char *title_msg, size_t title_msg_len)
|
|||||||
|
|
||||||
setting = setting_find_setting
|
setting = setting_find_setting
|
||||||
(menu->list_settings,
|
(menu->list_settings,
|
||||||
menu->menu_list->selection_buf->list[i].label);
|
menu_list->selection_buf->list[i].label);
|
||||||
|
|
||||||
if (setting_is_of_path_type(setting))
|
if (setting_is_of_path_type(setting))
|
||||||
{
|
{
|
||||||
@ -867,12 +868,12 @@ void get_core_title(char *title_msg, size_t title_msg_len)
|
|||||||
else
|
else
|
||||||
{ // This is for ST_GROUP/etc
|
{ // This is for ST_GROUP/etc
|
||||||
cbs = (menu_file_list_cbs_t*)
|
cbs = (menu_file_list_cbs_t*)
|
||||||
menu_list_get_actiondata_at_offset(menu->menu_list->selection_buf, i);
|
menu_list_get_actiondata_at_offset(menu_list->selection_buf, i);
|
||||||
|
|
||||||
if (cbs && cbs->action_get_representation)
|
if (cbs && cbs->action_get_representation)
|
||||||
{
|
{
|
||||||
cbs->action_get_representation
|
cbs->action_get_representation
|
||||||
(menu->menu_list->selection_buf,
|
(menu_list->selection_buf,
|
||||||
&w, type, i, label,
|
&w, type, i, label,
|
||||||
type_str, sizeof(type_str),
|
type_str, sizeof(type_str),
|
||||||
entry_label, path,
|
entry_label, path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user