Added support for xbox headers and plugins in burner and interface folders

This commit is contained in:
Barry Harris 2011-12-29 21:28:47 +00:00
parent 4de8fe7ab7
commit 6d7ee2c52d
7 changed files with 30 additions and 4 deletions

View File

@ -29,6 +29,8 @@
#include "burner_win32.h"
#elif defined (BUILD_SDL)
#include "burner_sdl.h"
#elif defined (_XBOX)
#include "burner_xbox.h"
#endif
#include "net.h"

View File

@ -21,6 +21,8 @@ static UINT32 nAudActive = 0;
extern struct AudOut AudOutXAudio2;
#elif defined (BUILD_SDL)
extern struct AudOut AudOutSDL;
#elif defined (_XBOX)
extern struct AudOut AudOutXAudio2;
#endif
static struct AudOut *pAudOut[]=
@ -30,6 +32,8 @@ static struct AudOut *pAudOut[]=
&AudOutXAudio2,
#elif defined (BUILD_SDL)
&AudOutSDL,
#elif defined (_XBOX)
&AudOutXAudio2,
#endif
};

View File

@ -11,9 +11,9 @@ static InterfaceInfo CDEmuInfo = { NULL, NULL, NULL };
#if defined BUILD_WIN32
extern struct CDEmuDo isowavDo;
#elif defined BUILD_SDL
// CD emulation module
#elif defined (_XBOX)
extern struct CDEmuDo isowavDo;
#endif
static struct CDEmuDo* pCDEmuDo[] =
@ -21,9 +21,9 @@ static struct CDEmuDo* pCDEmuDo[] =
#if defined BUILD_WIN32
&isowavDo,
#elif defined BUILD_SDL
// CD emulation module
#elif defined (_XBOX)
&isowavDo,
#endif
};

View File

@ -10,6 +10,8 @@ static bool bCinpOkay;
extern struct InputInOut InputInOutDInput;
#elif defined (BUILD_SDL)
extern struct InputInOut InputInOutSDL;
#elif defined (_XBOX)
extern struct InputInOut InputInOutXInput2;
#endif
static struct InputInOut *pInputInOut[]=
@ -18,6 +20,8 @@ static struct InputInOut *pInputInOut[]=
&InputInOutDInput,
#elif defined (BUILD_SDL)
&InputInOutSDL,
#elif defined (_XBOX)
&InputInOutXInput2,
#endif
};

View File

@ -166,6 +166,10 @@ InterfaceInfo* VidGetInfo();
extern HWND hVidWnd;
#endif
#if defined (_XBOX)
extern HWND hVidWnd;
#endif
extern bool bVidOkay;
extern UINT32 nVidSelect;
extern INT32 nVidWidth, nVidHeight, nVidDepth, nVidRefresh;

View File

@ -10,6 +10,8 @@ static InterfaceInfo ProfileInfo = { NULL, NULL, NULL };
extern struct ProfileDo cntDoPerfCount;
#elif defined (BUILD_SDL)
extern struct ProfileDo cntDoPerfCount;
#elif defined (_XBOX)
extern struct ProfileDo cntDoPerfCount;
#endif
static struct ProfileDo* pProfileDo[] =
@ -18,6 +20,8 @@ static struct ProfileDo* pProfileDo[] =
&cntDoPerfCount,
#elif defined (BUILD_SDL)
&cntDoPerfCount,
#elif defined (_XBOX)
&cntDoPerfCount,
#endif
};

View File

@ -15,6 +15,8 @@
#elif defined (BUILD_SDL)
extern struct VidOut VidOutSDLOpenGL;
extern struct VidOut VidOutSDLFX;
#elif defined (_XBOX)
extern struct VidOut VidOutD3D;
#endif
static struct VidOut *pVidOut[] = {
@ -27,6 +29,8 @@ static struct VidOut *pVidOut[] = {
#elif defined (BUILD_SDL)
&VidOutSDLOpenGL,
&VidOutSDLFX,
#elif defined (_XBOX)
&VidOutD3D,
#endif
};
@ -87,6 +91,10 @@ INT32 bVidMotionBlur = 0; // 1 = motion blur
HWND hVidWnd = NULL; // Actual window used for video
#endif
#if defined (_XBOX)
HWND hVidWnd = NULL; // Actual window used for video
#endif
INT32 nVidScrnWidth = 0, nVidScrnHeight = 0; // Actual Screen dimensions (0 if in windowed mode)
INT32 nVidScrnDepth = 0; // Actual screen depth