remove xbox support; it doesn't work, and it'd take too much effort to get it working again
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
#ifndef APP_INSTANCE_H
|
||||
#define APP_INSTANCE_H
|
||||
|
||||
#if !defined(_XBOX)
|
||||
# include "windows.h"
|
||||
#endif
|
||||
#include "windows.h"
|
||||
|
||||
/** @brief get an HINSTANCE for starting dialog boxes. */
|
||||
class AppInstance
|
||||
|
||||
@@ -2,14 +2,10 @@
|
||||
#include "DirectXHelpers.h"
|
||||
#include "RageUtil.h"
|
||||
|
||||
#ifdef _XBOX
|
||||
# include <D3DX8Core.h>
|
||||
#else
|
||||
# include <windows.h>
|
||||
# include <dxerr8.h>
|
||||
# if defined(_MSC_VER)
|
||||
# pragma comment(lib, "dxerr8.lib")
|
||||
# endif
|
||||
#include <windows.h>
|
||||
#include <dxerr8.h>
|
||||
#if defined(_MSC_VER)
|
||||
# pragma comment(lib, "dxerr8.lib")
|
||||
#endif
|
||||
|
||||
RString hr_ssprintf( int hr, const char *fmt, ... )
|
||||
@@ -19,13 +15,7 @@ RString hr_ssprintf( int hr, const char *fmt, ... )
|
||||
RString s = vssprintf( fmt, va );
|
||||
va_end(va);
|
||||
|
||||
#ifdef _XBOX
|
||||
char szError[1024] = "";
|
||||
D3DXGetErrorString( hr, szError, sizeof(szError) );
|
||||
#else
|
||||
const char *szError = DXGetErrorString8( hr );
|
||||
#endif
|
||||
|
||||
return s + ssprintf( " (%s)", szError );
|
||||
}
|
||||
|
||||
|
||||
@@ -2,17 +2,13 @@
|
||||
#include "ErrorStrings.h"
|
||||
#include "RageUtil.h"
|
||||
|
||||
#if !defined(XBOX)
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
RString werr_ssprintf( int err, const char *fmt, ... )
|
||||
{
|
||||
char buf[1024] = "";
|
||||
#ifndef _XBOX
|
||||
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
0, err, 0, buf, sizeof(buf), NULL);
|
||||
#endif
|
||||
|
||||
// Why is FormatMessage returning text ending with \r\n? (who? -aj)
|
||||
// Perhaps it's because you're on Windows, where newlines are \r\n. -aj
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
#ifndef ARCH_SETUP_WINDOWS_H
|
||||
#define ARCH_SETUP_WINDOWS_H
|
||||
|
||||
#if !defined(XBOX)
|
||||
#define HAVE_FFMPEG
|
||||
#define HAVE_THEORA
|
||||
#endif
|
||||
|
||||
#if !defined(XBOX)
|
||||
#define SUPPORT_OPENGL
|
||||
#endif
|
||||
#define SUPPORT_D3D
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
@@ -143,25 +139,13 @@ inline long int lrintf( float f )
|
||||
|
||||
/* We implement the crash handler interface (though that interface isn't
|
||||
* completely uniform across platforms yet). */
|
||||
#if !defined(_XBOX) && !defined(SMPACKAGE)
|
||||
#if !defined(SMPACKAGE)
|
||||
#define CRASH_HANDLER
|
||||
#endif
|
||||
|
||||
#define ENDIAN_LITTLE
|
||||
|
||||
#if defined(_XBOX)
|
||||
#if defined(_DEBUG)
|
||||
#define OGG_LIB_DIR "vorbis/xbox/debug/"
|
||||
#else
|
||||
#define OGG_LIB_DIR "vorbis/xbox/release/"
|
||||
#endif
|
||||
#else
|
||||
#define OGG_LIB_DIR "vorbis/win32/"
|
||||
#endif
|
||||
|
||||
#if defined(XBOX)
|
||||
#include "ArchUtils/Xbox/arch_setup.h"
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) // It might be MinGW or Cygwin(?)
|
||||
#include "archutils/Common/gcc_byte_swaps.h"
|
||||
|
||||
Reference in New Issue
Block a user