mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Start implementing frontend_linux_exec
This commit is contained in:
parent
cad629a36b
commit
8709657d4d
@ -2127,6 +2127,15 @@ static void frontend_linux_set_fork(bool exitspawn,
|
|||||||
exit_spawn = exitspawn;
|
exit_spawn = exitspawn;
|
||||||
exitspawn_start_game = start_game;
|
exitspawn_start_game = start_game;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void frontend_linux_exec(const char *path, bool should_load_game)
|
||||||
|
{
|
||||||
|
char *newargv[] = { NULL };
|
||||||
|
char *newenviron[] = { NULL };
|
||||||
|
|
||||||
|
execve(path, newargv, newenviron);
|
||||||
|
perror("execve");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
frontend_ctx_driver_t frontend_ctx_linux = {
|
frontend_ctx_driver_t frontend_ctx_linux = {
|
||||||
@ -2135,10 +2144,11 @@ frontend_ctx_driver_t frontend_ctx_linux = {
|
|||||||
frontend_linux_deinit, /* deinit */
|
frontend_linux_deinit, /* deinit */
|
||||||
NULL, /* exitspawn */
|
NULL, /* exitspawn */
|
||||||
NULL, /* process_args */
|
NULL, /* process_args */
|
||||||
NULL, /* exec */
|
|
||||||
#ifdef HAVE_DYNAMIC
|
#ifdef HAVE_DYNAMIC
|
||||||
|
NULL, /* exec */
|
||||||
NULL, /* set_fork */
|
NULL, /* set_fork */
|
||||||
#else
|
#else
|
||||||
|
frontend_linux_exec, /* exec */
|
||||||
frontend_linux_set_fork, /* set_fork */
|
frontend_linux_set_fork, /* set_fork */
|
||||||
#endif
|
#endif
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user