mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
Attempt to fix 'Restart RetroArch' - move code to platform_gx.c
This commit is contained in:
parent
8caee50fcd
commit
028cfaa048
@ -1314,14 +1314,7 @@ bool event_command(enum event_command cmd)
|
||||
rarch_ctl(RARCH_CTL_MENU_RUNNING_FINISHED, NULL);
|
||||
break;
|
||||
case EVENT_CMD_RESTART_RETROARCH:
|
||||
{
|
||||
#if defined(GEKKO) && defined(HW_RVL)
|
||||
char new_path[PATH_MAX_LENGTH];
|
||||
fill_pathname_join(new_path, g_defaults.dir.core, SALAMANDER_FILE, sizeof(new_path));
|
||||
runloop_ctl(RUNLOOP_CTL_SET_CONTENT_PATH, new_path);
|
||||
#endif
|
||||
frontend_driver_set_fork(true, false);
|
||||
}
|
||||
frontend_driver_set_fork(true, false);
|
||||
break;
|
||||
case EVENT_CMD_MENU_SAVE_CURRENT_CONFIG:
|
||||
event_save_current_config();
|
||||
|
@ -366,8 +366,18 @@ static void frontend_gx_process_args(int *argc, char *argv[])
|
||||
|
||||
static void frontend_gx_set_fork(bool exitspawn, bool start_game)
|
||||
{
|
||||
exit_spawn = exitspawn;
|
||||
#if defined(HW_RVL) && !defined(IS_SALAMANDER)
|
||||
char new_path[PATH_MAX_LENGTH];
|
||||
fill_pathname_join(new_path, g_defaults.dir.core, SALAMANDER_FILE, sizeof(new_path));
|
||||
runloop_ctl(RUNLOOP_CTL_SET_CONTENT_PATH, new_path);
|
||||
#endif
|
||||
|
||||
exit_spawn = exitspawn;
|
||||
exitspawn_start_game = start_game;
|
||||
|
||||
#ifndef IS_SALAMANDER
|
||||
rarch_ctl(RARCH_CTL_FORCE_QUIT, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
static int frontend_gx_get_rating(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user