From fe72d42a0eafddaa4c53e2763f285ca8278abfca Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 3 Jun 2014 19:21:49 +0200 Subject: [PATCH] Remove process_args where we can --- frontend/platform/platform_ps3.c | 24 +----------------------- frontend/platform/platform_psp.c | 11 +---------- frontend/platform/platform_qnx.c | 10 +--------- frontend/platform/platform_xdk.c | 20 +------------------- 4 files changed, 4 insertions(+), 61 deletions(-) diff --git a/frontend/platform/platform_ps3.c b/frontend/platform/platform_ps3.c index 129233e283..67b678c75f 100644 --- a/frontend/platform/platform_ps3.c +++ b/frontend/platform/platform_ps3.c @@ -356,28 +356,6 @@ static void frontend_ps3_init(void *data) #endif } -static int frontend_ps3_process_args(int *argc, char *argv[], void *args) -{ - int ret = 1; -#ifndef IS_SALAMANDER - bool original_verbose = g_extern.verbose; - g_extern.verbose = true; - -#if 0 - if (*argc > 1 && argv[1] != NULL) - { - strlcpy(g_extern.fullpath, argv[1], sizeof(g_extern.fullpath)); - ret = 0; - RARCH_LOG("Auto-start game %s.\n", argv[1]); - } -#endif - - g_extern.verbose = original_verbose; -#endif - - return ret; -} - static void frontend_ps3_deinit(void *data) { (void)data; @@ -541,7 +519,7 @@ const frontend_ctx_driver_t frontend_ctx_ps3 = { frontend_ps3_init, /* init */ frontend_ps3_deinit, /* deinit */ frontend_ps3_exitspawn, /* exitspawn */ - frontend_ps3_process_args, /* process_args */ + NULL, /* process_args */ NULL, /* process_events */ frontend_ps3_exec, /* exec */ NULL, /* shutdown */ diff --git a/frontend/platform/platform_psp.c b/frontend/platform/platform_psp.c index d9703d0955..e562f93f66 100644 --- a/frontend/platform/platform_psp.c +++ b/frontend/platform/platform_psp.c @@ -134,15 +134,6 @@ static void frontend_psp_deinit(void *data) sceKernelExitGame(); } -static int frontend_psp_process_args(int *argc, char *argv[], void *args) -{ - (void)argc; - (void)args; - - - return 1; -} - static int frontend_psp_get_rating(void) { return 4; @@ -153,7 +144,7 @@ const frontend_ctx_driver_t frontend_ctx_psp = { frontend_psp_init, /* init */ frontend_psp_deinit, /* deinit */ NULL, /* exitspawn */ - frontend_psp_process_args, /* process_args */ + NULL, /* process_args */ NULL, /* process_events */ NULL, /* exec */ NULL, /* shutdown */ diff --git a/frontend/platform/platform_qnx.c b/frontend/platform/platform_qnx.c index 414532fba3..a774fc0b76 100644 --- a/frontend/platform/platform_qnx.c +++ b/frontend/platform/platform_qnx.c @@ -23,14 +23,6 @@ #include "../../dynamic.h" #include "../../libretro_private.h" -static void frontend_qnx_get_environment_settings(int *argc, char *argv[], - void *args, void *params_data) -{ - (void)argc; - (void)argv; - (void)args; -} - static void frontend_qnx_init(void *data) { (void)data; @@ -51,7 +43,7 @@ static int frontend_qnx_get_rating(void) } const frontend_ctx_driver_t frontend_ctx_qnx = { - frontend_qnx_get_environment_settings, /* get_environment_settings */ + NULL, /* get_environment_settings */ frontend_qnx_init, /* init */ NULL, /* deinit */ NULL, /* exitspawn */ diff --git a/frontend/platform/platform_xdk.c b/frontend/platform/platform_xdk.c index cf291f8c44..4dd8037750 100644 --- a/frontend/platform/platform_xdk.c +++ b/frontend/platform/platform_xdk.c @@ -346,24 +346,6 @@ static void frontend_xdk_init(void *data) #endif } -static int frontend_xdk_process_args(int *argc, char *argv[], void *args) -{ - int ret; -#ifndef IS_SALAMANDER - bool original_verbose = g_extern.verbose; - g_extern.verbose = true; -#endif - - ret = 1; - (void)argc; - (void)argv; - -#ifndef IS_SALAMANDER - g_extern.verbose = original_verbose; -#endif - return ret; -} - static void frontend_xdk_exec(const char *path, bool should_load_game); static void frontend_xdk_exitspawn(void) @@ -439,7 +421,7 @@ const frontend_ctx_driver_t frontend_ctx_xdk = { frontend_xdk_init, /* init */ NULL, /* deinit */ frontend_xdk_exitspawn, /* exitspawn */ - frontend_xdk_process_args, /* process_args */ + NULL, /* process_args */ NULL, /* process_events */ frontend_xdk_exec, /* exec */ NULL, /* shutdown */