mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(GX) Fix 'Restart RetroArch'
This commit is contained in:
parent
694ef7570e
commit
3c2f7fadcc
@ -355,8 +355,6 @@ static void frontend_gx_exitspawn(char *s, size_t len)
|
|||||||
runloop_ctl(RUNLOOP_CTL_SET_CONTENT_PATH, new_path);
|
runloop_ctl(RUNLOOP_CTL_SET_CONTENT_PATH, new_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (gx_fork_mode == FRONTEND_FORK_RESTART)
|
|
||||||
rarch_ctl(RARCH_CTL_FORCE_QUIT, NULL);
|
|
||||||
break;
|
break;
|
||||||
case FRONTEND_FORK_NONE:
|
case FRONTEND_FORK_NONE:
|
||||||
default:
|
default:
|
||||||
@ -395,7 +393,7 @@ static void frontend_gx_process_args(int *argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HW_RVL
|
#if defined(HW_RVL) && !defined(IS_SALAMANDER)
|
||||||
static bool frontend_gx_set_fork(enum frontend_fork fork_mode)
|
static bool frontend_gx_set_fork(enum frontend_fork fork_mode)
|
||||||
{
|
{
|
||||||
switch (fork_mode)
|
switch (fork_mode)
|
||||||
@ -411,6 +409,7 @@ static bool frontend_gx_set_fork(enum frontend_fork fork_mode)
|
|||||||
case FRONTEND_FORK_RESTART:
|
case FRONTEND_FORK_RESTART:
|
||||||
RARCH_LOG("FRONTEND_FORK_RESTART\n");
|
RARCH_LOG("FRONTEND_FORK_RESTART\n");
|
||||||
gx_fork_mode = fork_mode;
|
gx_fork_mode = fork_mode;
|
||||||
|
rarch_ctl(RARCH_CTL_FORCE_QUIT, NULL);
|
||||||
break;
|
break;
|
||||||
case FRONTEND_FORK_NONE:
|
case FRONTEND_FORK_NONE:
|
||||||
default:
|
default:
|
||||||
@ -468,7 +467,7 @@ frontend_ctx_driver_t frontend_ctx_gx = {
|
|||||||
frontend_gx_exitspawn,
|
frontend_gx_exitspawn,
|
||||||
frontend_gx_process_args,
|
frontend_gx_process_args,
|
||||||
frontend_gx_exec,
|
frontend_gx_exec,
|
||||||
#ifdef HW_RVL
|
#if defined(HW_RVL) && !defined(IS_SALAMANDER)
|
||||||
frontend_gx_set_fork,
|
frontend_gx_set_fork,
|
||||||
#else
|
#else
|
||||||
NULL,
|
NULL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user