Not necessary for content_ctx to be passed either

This commit is contained in:
twinaphex 2019-07-14 18:26:18 +02:00
parent 58417e56b7
commit 9cc055bf93

View File

@ -1297,7 +1297,6 @@ static void menu_content_environment_get(int *argc, char *argv[],
* Will push the content entry to the history playlist.
**/
static void task_push_to_history_list(
content_information_ctx_t *content_ctx,
bool launched_from_menu,
bool launched_from_cli)
{
@ -1461,8 +1460,7 @@ static bool command_event_cmd_exec(const char *data,
/* Loads content into currently selected core. */
if (!content_load(&content_info))
return false;
task_push_to_history_list(content_ctx,
true, launched_from_cli);
task_push_to_history_list(true, launched_from_cli);
#else
frontend_driver_set_fork(FRONTEND_FORK_CORE_WITH_ARGS);
#endif
@ -1599,8 +1597,7 @@ bool task_push_start_dummy_core(content_ctx_info_t *content_info)
ret = false;
}
else
task_push_to_history_list(&content_ctx,
false, false);
task_push_to_history_list(false, false);
if (content_ctx.name_ips)
free(content_ctx.name_ips);
@ -1790,8 +1787,7 @@ bool task_push_start_current_core(content_ctx_info_t *content_info)
goto end;
}
else
task_push_to_history_list(&content_ctx,
true, false);
task_push_to_history_list(true, false);
#ifdef HAVE_MENU
/* Push quick menu onto menu stack */
@ -1917,9 +1913,7 @@ bool task_push_load_content_with_new_core_from_menu(
goto end;
}
else
task_push_to_history_list(&content_ctx,
true, false);
task_push_to_history_list(true, false);
#else
command_event_cmd_exec(path_get(RARCH_PATH_CONTENT), &content_ctx,
false, &error_string);
@ -2030,7 +2024,7 @@ static bool task_load_content_callback(content_ctx_info_t *content_info,
ret = content_load(content_info);
if (ret)
task_push_to_history_list(&content_ctx, true, loading_from_cli);
task_push_to_history_list(true, loading_from_cli);
end:
if (content_ctx.name_ips)