Remove process_args where we can

This commit is contained in:
twinaphex 2014-06-03 19:21:49 +02:00
parent cdbdc524a5
commit fe72d42a0e
4 changed files with 4 additions and 61 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */