Skip to content

Commit

Permalink
Implement frontend_linux_exitspawn
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Feb 4, 2016
1 parent c3c14c1 commit 84c3b5a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions frontend/drivers/platform_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -2141,13 +2141,35 @@ static void frontend_linux_exec(const char *path, bool should_load_game)
execve(path, newargv, newenviron);
perror("execve");
}

static void frontend_linux_exitspawn(char *core_path, size_t core_path_size)
{
bool should_load_game = exitspawn_start_game;

#if 0
if (!exit_spawn)
{
frontend_ctx_driver_t *frontend = frontend_get_ptr();

if (frontend)
frontend->shutdown = frontend_linux_shutdown;
return;
}
#endif

frontend_linux_exec(core_path, should_load_game);
}
#endif

frontend_ctx_driver_t frontend_ctx_linux = {
frontend_linux_get_env, /* environment_get */
frontend_linux_init, /* init */
frontend_linux_deinit, /* deinit */
#ifdef HAVE_DYNAMIC
NULL, /* exitspawn */
#else
frontend_linux_exitspawn, /* exitspawn */
#endif
NULL, /* process_args */
#ifdef HAVE_DYNAMIC
NULL, /* exec */
Expand Down

0 comments on commit 84c3b5a

Please sign in to comment.