From 9cc055bf932b9aa86f4b8b233ef2450e99704273 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Jul 2019 18:26:18 +0200 Subject: [PATCH] Not necessary for content_ctx to be passed either --- tasks/task_content.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/tasks/task_content.c b/tasks/task_content.c index 72a9e776e2..b5c5672d30 100644 --- a/tasks/task_content.c +++ b/tasks/task_content.c @@ -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)