mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(menu_displaylist.c) Start using rarch_system_info_get_ptr
This commit is contained in:
parent
059a772e87
commit
ffa632008d
@ -1527,6 +1527,8 @@ static int menu_displaylist_parse_load_content_settings(menu_displaylist_info_t
|
|||||||
|
|
||||||
if (global->main_is_init && (global->core_type != CORE_TYPE_DUMMY))
|
if (global->main_is_init && (global->core_type != CORE_TYPE_DUMMY))
|
||||||
{
|
{
|
||||||
|
rarch_system_info_t *system = rarch_system_info_get_ptr();
|
||||||
|
|
||||||
menu_list_push(info->list,
|
menu_list_push(info->list,
|
||||||
menu_hash_to_str(MENU_LABEL_VALUE_RESUME_CONTENT),
|
menu_hash_to_str(MENU_LABEL_VALUE_RESUME_CONTENT),
|
||||||
menu_hash_to_str(MENU_LABEL_RESUME_CONTENT),
|
menu_hash_to_str(MENU_LABEL_RESUME_CONTENT),
|
||||||
@ -1571,7 +1573,7 @@ static int menu_displaylist_parse_load_content_settings(menu_displaylist_info_t
|
|||||||
menu_hash_to_str(MENU_LABEL_VALUE_CORE_CHEAT_OPTIONS),
|
menu_hash_to_str(MENU_LABEL_VALUE_CORE_CHEAT_OPTIONS),
|
||||||
menu_hash_to_str(MENU_LABEL_CORE_CHEAT_OPTIONS),
|
menu_hash_to_str(MENU_LABEL_CORE_CHEAT_OPTIONS),
|
||||||
MENU_SETTING_ACTION, 0, 0);
|
MENU_SETTING_ACTION, 0, 0);
|
||||||
if ((global->core_type != CORE_TYPE_DUMMY) && global->system.disk_control.get_num_images)
|
if ((global->core_type != CORE_TYPE_DUMMY) && system && system->disk_control.get_num_images)
|
||||||
menu_list_push(info->list,
|
menu_list_push(info->list,
|
||||||
menu_hash_to_str(MENU_LABEL_VALUE_DISK_OPTIONS),
|
menu_hash_to_str(MENU_LABEL_VALUE_DISK_OPTIONS),
|
||||||
menu_hash_to_str(MENU_LABEL_DISK_OPTIONS),
|
menu_hash_to_str(MENU_LABEL_DISK_OPTIONS),
|
||||||
@ -1773,6 +1775,7 @@ static int menu_displaylist_parse_options_remappings(menu_displaylist_info_t *in
|
|||||||
unsigned p, retro_id;
|
unsigned p, retro_id;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
|
rarch_system_info_t *system = rarch_system_info_get_ptr();
|
||||||
|
|
||||||
menu_list_push(info->list,
|
menu_list_push(info->list,
|
||||||
menu_hash_to_str(MENU_LABEL_VALUE_REMAP_FILE_LOAD),
|
menu_hash_to_str(MENU_LABEL_VALUE_REMAP_FILE_LOAD),
|
||||||
@ -1803,7 +1806,7 @@ static int menu_displaylist_parse_options_remappings(menu_displaylist_info_t *in
|
|||||||
if (desc_offset >= RARCH_FIRST_CUSTOM_BIND)
|
if (desc_offset >= RARCH_FIRST_CUSTOM_BIND)
|
||||||
desc_offset = RARCH_FIRST_CUSTOM_BIND + (desc_offset - RARCH_FIRST_CUSTOM_BIND) * 2;
|
desc_offset = RARCH_FIRST_CUSTOM_BIND + (desc_offset - RARCH_FIRST_CUSTOM_BIND) * 2;
|
||||||
|
|
||||||
description = global->system.input_desc_btn[p][desc_offset];
|
description = system ? system->input_desc_btn[p][desc_offset] : NULL;
|
||||||
|
|
||||||
if (!description)
|
if (!description)
|
||||||
continue;
|
continue;
|
||||||
@ -2039,6 +2042,7 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
|||||||
menu_navigation_t *nav = menu_navigation_get_ptr();
|
menu_navigation_t *nav = menu_navigation_get_ptr();
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
rarch_system_info_t *system = rarch_system_info_get_ptr();
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
@ -2354,13 +2358,13 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
|||||||
break;
|
break;
|
||||||
case DISPLAYLIST_CORE_OPTIONS:
|
case DISPLAYLIST_CORE_OPTIONS:
|
||||||
menu_list_clear(info->list);
|
menu_list_clear(info->list);
|
||||||
if (global->system.core_options)
|
if (system && system->core_options)
|
||||||
{
|
{
|
||||||
size_t opts = core_option_size(global->system.core_options);
|
size_t opts = core_option_size(system->core_options);
|
||||||
|
|
||||||
for (i = 0; i < opts; i++)
|
for (i = 0; i < opts; i++)
|
||||||
menu_list_push(info->list,
|
menu_list_push(info->list,
|
||||||
core_option_get_desc(global->system.core_options, i), "",
|
core_option_get_desc(system->core_options, i), "",
|
||||||
MENU_SETTINGS_CORE_OPTION_START + i, 0, 0);
|
MENU_SETTINGS_CORE_OPTION_START + i, 0, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user