mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Show Unload Core only when dynamic dummy core is not loaded
This commit is contained in:
parent
4c40ff37c2
commit
183472b4f3
18
settings.c
18
settings.c
@ -3373,12 +3373,18 @@ static bool setting_append_list_main_menu_options(
|
||||
(*list)[list_info->index - 1].change_handler = load_content_change_handler;
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_BROWSER_ACTION);
|
||||
|
||||
CONFIG_ACTION(
|
||||
"unload_core",
|
||||
"Unload Core",
|
||||
group_info.name,
|
||||
subgroup_info.name);
|
||||
settings_list_current_add_cmd(list, list_info, RARCH_CMD_UNLOAD_CORE);
|
||||
{
|
||||
struct retro_system_info *info = (struct retro_system_info*)
|
||||
global ? &global->system.info : NULL;
|
||||
|
||||
if (info && strcmp(info->library_name, "No Core") != 0)
|
||||
CONFIG_ACTION(
|
||||
"unload_core",
|
||||
"Unload Core",
|
||||
group_info.name,
|
||||
subgroup_info.name);
|
||||
settings_list_current_add_cmd(list, list_info, RARCH_CMD_UNLOAD_CORE);
|
||||
}
|
||||
|
||||
CONFIG_ACTION(
|
||||
"core_information",
|
||||
|
Loading…
x
Reference in New Issue
Block a user