diff --git a/frontend/frontend.c b/frontend/frontend.c index fb4b6e2beb..798f8d009e 100644 --- a/frontend/frontend.c +++ b/frontend/frontend.c @@ -361,8 +361,7 @@ returntype main_entry(signature()) #if defined(HAVE_MENU) if (driver.frontend_ctx && driver.frontend_ctx->process_args) - ret = driver.frontend_ctx->process_args(rarch_argc_ptr, rarch_argv_ptr, args); - + driver.frontend_ctx->process_args(rarch_argc_ptr, rarch_argv_ptr, args); g_extern.lifecycle_state |= (1ULL << MODE_GAME); diff --git a/frontend/frontend_context.h b/frontend/frontend_context.h index a36cd3177c..2ee6f81045 100644 --- a/frontend/frontend_context.h +++ b/frontend/frontend_context.h @@ -36,7 +36,7 @@ typedef struct frontend_ctx_driver void (*deinit)(void *data); void (*exitspawn)(void); - int (*process_args)(int *argc, char *argv[], void *args); + void (*process_args)(int *argc, char *argv[], void *args); int (*process_events)(void *data); void (*exec)(const char *, bool); void (*shutdown)(bool); diff --git a/frontend/platform/platform_gx.c b/frontend/platform/platform_gx.c index 9a46c9dd31..398cbfa541 100644 --- a/frontend/platform/platform_gx.c +++ b/frontend/platform/platform_gx.c @@ -354,10 +354,8 @@ static void frontend_gx_exitspawn(void) #endif } -static int frontend_gx_process_args(int *argc, char *argv[], void *args) +static void frontend_gx_process_args(int *argc, char *argv[], void *args) { - int ret = 1; - #ifndef IS_SALAMANDER // a big hack: sometimes salamander doesn't save the new core it loads on first boot, // so we make sure g_settings.libretro is set here @@ -368,8 +366,6 @@ static int frontend_gx_process_args(int *argc, char *argv[], void *args) rarch_environment_cb(RETRO_ENVIRONMENT_SET_LIBRETRO_PATH, path); } #endif - - return ret; } static void frontend_gx_exec(const char *path, bool should_load_game)