Remove some _XBOX stuff

This commit is contained in:
Henrik Rydgård committed 2020-07-20 10:03:09 +02:00
1 parent 9e08f24769
commit fa683bf902
2 files changed
+2 -8

No files matched your search

+1 -4
View File
@@ -36,10 +36,7 @@
class PointerWrap;
// Net stuff
#ifdef _XBOX
#include <winsockx.h>
typedef int socklen_t;
#elif defined(_WIN32)
#if defined(_WIN32)
#include <WS2tcpip.h>
#else
#include <unistd.h>
+1 -4
View File
@@ -65,18 +65,15 @@ static int32_t* pIDBuf = NULL;
#define ID_SHM_NAME "/PPSSPP_ID"
// Get current number of instance of PPSSPP running.
// Must be called only once during init.
static uint8_t getPPSSPPInstanceNumber() {
#ifdef _WIN32
#if defined(_XBOX)
uint32_t BUF_SIZE = 0x10000; // 64k in 360;
#else
uint32_t BUF_SIZE = 4096;
SYSTEM_INFO sysInfo;
GetSystemInfo(&sysInfo);
int gran = sysInfo.dwAllocationGranularity ? sysInfo.dwAllocationGranularity : 0x10000;
BUF_SIZE = (BUF_SIZE + gran - 1) & ~(gran - 1);
#endif
hIDMapFile = CreateFileMapping(
INVALID_HANDLE_VALUE, // use paging file