mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 06:18:34 +00:00
(360) Don't include D3D/Netcode where not needed through NOD3D/
NONET defines
This commit is contained in:
parent
1f00ce1812
commit
81988fc1ef
@ -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"
|
||||
|
@ -16,6 +16,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define NONET
|
||||
#include <xtl.h>
|
||||
#include <malloc.h>
|
||||
#include "xdk360_video.h"
|
||||
|
@ -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"
|
||||
|
@ -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];
|
||||
|
@ -16,6 +16,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define NONET
|
||||
#include <xtl.h>
|
||||
|
||||
#include "../driver.h"
|
||||
|
@ -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
|
||||
|
@ -16,6 +16,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define NONET
|
||||
#include <xtl.h>
|
||||
#include <xgraphics.h>
|
||||
#include "xdk360_video.h"
|
||||
|
@ -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
2
file.c
@ -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
|
||||
|
@ -63,6 +63,7 @@
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#elif defined(_XBOX)
|
||||
#define NOD3D
|
||||
#include <xtl.h>
|
||||
#endif
|
||||
|
||||
|
@ -17,6 +17,8 @@
|
||||
*/
|
||||
|
||||
#ifdef _XBOX
|
||||
#define NOD3D
|
||||
#define NONET
|
||||
#include <xtl.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user