Start implementing frontend_linux_exec

This commit is contained in:
twinaphex 2016-02-04 14:10:29 +01:00
parent cad629a36b
commit 8709657d4d

View File

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