Show Unload Core only when dynamic dummy core is not loaded

This commit is contained in:
twinaphex 2015-03-24 14:48:23 +01:00
parent 4c40ff37c2
commit 183472b4f3

View File

@ -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",