(360) Don't include D3D/Netcode where not needed through NOD3D/

NONET defines
This commit is contained in:
TwinAphex51224 2012-03-11 16:17:42 +01:00
parent 1f00ce1812
commit 81988fc1ef
11 changed files with 19 additions and 9 deletions

View File

@ -16,7 +16,9 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <Xtl.h>
#define NOD3D
#define NONET
#include <xtl.h>
#include "file_browser.h"
#include "../general.h"
#include "../file.h"

View File

@ -16,6 +16,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#define NONET
#include <xtl.h>
#include <malloc.h>
#include "xdk360_video.h"

View File

@ -17,6 +17,8 @@
#include "../driver.h"
#include <stdlib.h>
#define NOD3D
#define NONET
#include <xtl.h>
#include "xaudio-c/xaudio.h"
#include "../general.h"

View File

@ -18,13 +18,15 @@
#include <stdint.h>
#include <stdlib.h>
#define NOD3D
#define NONET
#include <xtl.h>
#include "../driver.h"
#include "../general.h"
#include "../libsnes.hpp"
#include "../input/input_luts.h"
#include "xdk360_input.h"
#include "xdk360_video.h"
#include "xdk360_video_general.h"
#include "shared.h"
static uint64_t state[4];

View File

@ -16,6 +16,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#define NONET
#include <xtl.h>
#include "../driver.h"

View File

@ -21,6 +21,7 @@
#include <stdint.h>
#include "fonts.h"
#include "xdk360_video_general.h"
typedef struct {
float x;
@ -73,19 +74,12 @@ enum
ASPECT_RATIO_CUSTOM
};
#define LAST_ASPECT_RATIO ASPECT_RATIO_CUSTOM
#define IS_TIMER_NOT_EXPIRED() (g_frame_count < g_console.timer_expiration_frame_count)
#define IS_TIMER_EXPIRED() (!(IS_TIMER_NOT_EXPIRED()))
#define SET_TIMER_EXPIRATION(value) g_console.timer_expiration_frame_count = g_frame_count + value;
void xdk360_video_init(void);
void xdk360_video_deinit(void);
void xdk360_video_set_vsync(bool vsync);
void xdk360_set_aspect_ratio(uint32_t aspectratio_index);
void xdk360_set_orientation(uint32_t orientation);
extern unsigned g_frame_count;
extern void *g_d3d;
#endif

View File

@ -16,6 +16,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#define NONET
#include <xtl.h>
#include <xgraphics.h>
#include "xdk360_video.h"

View File

@ -32,6 +32,8 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#elif defined(_XBOX)
#define NOD3D
#define NONET
#include <xtl.h>
#endif

2
file.c
View File

@ -44,6 +44,8 @@
#define setmode _setmode
#endif
#elif defined(_XBOX)
#define NOD3D
#define NONET
#include <xtl.h>
#define setmode _setmode
#define INVALID_FILE_ATTRIBUTES -1

View File

@ -63,6 +63,7 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#elif defined(_XBOX)
#define NOD3D
#include <xtl.h>
#endif

View File

@ -17,6 +17,8 @@
*/
#ifdef _XBOX
#define NOD3D
#define NONET
#include <xtl.h>
#endif