Add workaround for statically linked RA when RARCH_PATH_CORE is

empty
This commit is contained in:
twinaphex 2016-12-16 11:56:34 +01:00
parent d82a65089f
commit e0166a5d68

View File

@ -5723,6 +5723,28 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
}
else
{
#ifndef HAVE_DYNAMIC
const char *core_name = NULL;
struct retro_system_info *system = NULL;
menu_driver_ctl(RARCH_MENU_CTL_SYSTEM_INFO_GET,
&system);
if (system)
{
core_name = system->library_name;
menu_entries_append_enum(info->list,
core_name,
core_name,
MENU_ENUM_LABEL_DETECT_CORE_LIST_OK_CURRENT_CORE,
FILE_TYPE_DIRECT_LOAD,
0,
0);
}
else
#endif
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORES_AVAILABLE),
msg_hash_to_str(MENU_ENUM_LABEL_NO_CORES_AVAILABLE),
@ -5731,6 +5753,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
info->download_core = true;
}
}
}
if (cores_names_size != 0)
{