mirror of
https://github.com/libretro/RetroArch
synced 2025-02-11 15:40:28 +00:00
Change return type of process_args to void
This commit is contained in:
parent
27cbd74564
commit
97c6ae0911
@ -361,8 +361,7 @@ returntype main_entry(signature())
|
|||||||
|
|
||||||
#if defined(HAVE_MENU)
|
#if defined(HAVE_MENU)
|
||||||
if (driver.frontend_ctx && driver.frontend_ctx->process_args)
|
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);
|
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ typedef struct frontend_ctx_driver
|
|||||||
void (*deinit)(void *data);
|
void (*deinit)(void *data);
|
||||||
void (*exitspawn)(void);
|
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);
|
int (*process_events)(void *data);
|
||||||
void (*exec)(const char *, bool);
|
void (*exec)(const char *, bool);
|
||||||
void (*shutdown)(bool);
|
void (*shutdown)(bool);
|
||||||
|
@ -354,10 +354,8 @@ static void frontend_gx_exitspawn(void)
|
|||||||
#endif
|
#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
|
#ifndef IS_SALAMANDER
|
||||||
// a big hack: sometimes salamander doesn't save the new core it loads on first boot,
|
// 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
|
// 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);
|
rarch_environment_cb(RETRO_ENVIRONMENT_SET_LIBRETRO_PATH, path);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void frontend_gx_exec(const char *path, bool should_load_game)
|
static void frontend_gx_exec(const char *path, bool should_load_game)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user