Change return type of process_args to void

This commit is contained in:
twinaphex 2014-06-03 20:03:56 +02:00
parent 27cbd74564
commit 97c6ae0911
3 changed files with 3 additions and 8 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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)