Skip to content

Commit

Permalink
Remove some _XBOX stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jul 20, 2020
1 parent 9e08f24 commit fa683bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions Core/HLE/proAdhoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 1 addition & 4 deletions Core/HLE/sceNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa683bf

Please sign in to comment.