(platform_win32.c) Exclude this for Xbox

This commit is contained in:
twinaphex 2019-05-21 04:32:56 +02:00
parent 5eea93497c
commit beda37e463
1 changed files with 15 additions and 3 deletions

View File

@ -20,8 +20,10 @@
#include <retro_miscellaneous.h> #include <retro_miscellaneous.h>
#include <windows.h> #include <windows.h>
#if defined(_WIN32) && !defined(_XBOX)
#include <process.h> #include <process.h>
#include <errno.h> #include <errno.h>
#endif
#include <boolean.h> #include <boolean.h>
#include <compat/strl.h> #include <compat/strl.h>
@ -637,9 +639,10 @@ enum retro_language frontend_win32_get_user_language(void)
return lang; return lang;
} }
#if defined(_WIN32) && !defined(_XBOX)
enum frontend_fork win32_fork_mode; enum frontend_fork win32_fork_mode;
void frontend_win32_respawn(char *s, size_t len) static void frontend_win32_respawn(char *s, size_t len)
{ {
if (win32_fork_mode != FRONTEND_FORK_RESTART) if (win32_fork_mode != FRONTEND_FORK_RESTART)
return; return;
@ -665,7 +668,7 @@ void frontend_win32_respawn(char *s, size_t len)
return; return;
} }
bool frontend_win32_set_fork(enum frontend_fork fork_mode) static bool frontend_win32_set_fork(enum frontend_fork fork_mode)
{ {
switch (fork_mode) switch (fork_mode)
{ {
@ -683,15 +686,24 @@ bool frontend_win32_set_fork(enum frontend_fork fork_mode)
win32_fork_mode = fork_mode; win32_fork_mode = fork_mode;
return true; return true;
} }
#endif
frontend_ctx_driver_t frontend_ctx_win32 = { frontend_ctx_driver_t frontend_ctx_win32 = {
frontend_win32_environment_get, frontend_win32_environment_get,
frontend_win32_init, frontend_win32_init,
NULL, /* deinit */ NULL, /* deinit */
#if defined(_WIN32) && !defined(_XBOX)
frontend_win32_respawn, /* exitspawn */ frontend_win32_respawn, /* exitspawn */
#else
NULL, /* exitspawn */
#endif
NULL, /* process_args */ NULL, /* process_args */
NULL, /* exec */ NULL, /* exec */
frontend_win32_set_fork, /* set_fork */ #if defined(_WIN32) && !defined(_XBOX)
frontend_win32_set_fork, /* set_fork */
#else
NULL, /* set_fork */
#endif
NULL, /* shutdown */ NULL, /* shutdown */
NULL, /* get_name */ NULL, /* get_name */
frontend_win32_get_os, frontend_win32_get_os,