From fa683bf902c8e4d495beb6805aca8e09e559f161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 20 Jul 2020 09:51:03 +0200 Subject: [PATCH] Remove some _XBOX stuff --- Core/HLE/proAdhoc.h | 5 +---- Core/HLE/sceNet.cpp | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Core/HLE/proAdhoc.h b/Core/HLE/proAdhoc.h index 8440d573b51e..21470fc7a353 100644 --- a/Core/HLE/proAdhoc.h +++ b/Core/HLE/proAdhoc.h @@ -36,10 +36,7 @@ class PointerWrap; // Net stuff -#ifdef _XBOX -#include -typedef int socklen_t; -#elif defined(_WIN32) +#if defined(_WIN32) #include #else #include diff --git a/Core/HLE/sceNet.cpp b/Core/HLE/sceNet.cpp index 2d41e054e004..dacb2904a8d5 100644 --- a/Core/HLE/sceNet.cpp +++ b/Core/HLE/sceNet.cpp @@ -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