mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
Remove some _XBOX stuff
This commit is contained in:
1 parent
9e08f24769
commit
fa683bf902
2 files changed
+2
-8
No files matched your search
+1
-4
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user