mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-22 08:23:02 +00:00
Minecraft.World: move linux win defs into its own file
This commit is contained in:
parent
fc37ed6b06
commit
32f065e21d
80
Minecraft.World/linux/wlinux.h
Normal file
80
Minecraft.World/linux/wlinux.h
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
#ifndef WLINUX_H
|
||||
#define WLINUX_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
|
||||
typedef unsigned int DWORD;
|
||||
typedef const char *LPCSTR;
|
||||
typedef bool BOOL;
|
||||
typedef void* LPVOID;
|
||||
typedef char WCHAR;
|
||||
typedef unsigned char BYTE;
|
||||
typedef BYTE* PBYTE;
|
||||
typedef const wchar_t* LPCWSTR;
|
||||
typedef unsigned long long ULONGLONG;
|
||||
typedef int HRESULT;
|
||||
typedef unsigned int UINT;
|
||||
#define TRUE true
|
||||
#define WINAPI
|
||||
typedef void* HANDLE;
|
||||
typedef int INT;
|
||||
typedef char CHAR;
|
||||
typedef void* PVOID;
|
||||
typedef unsigned long* ULONG_PTR;
|
||||
typedef long LONG;
|
||||
typedef void VOID;
|
||||
#define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length))
|
||||
#define ZeroMemory RtlZeroMemory
|
||||
typedef ULONGLONG PlayerUID;
|
||||
typedef DWORD WORD;
|
||||
#define FALSE false
|
||||
typedef struct {
|
||||
DWORD LowPart;
|
||||
long long QuadPart;
|
||||
LONG HighPart;
|
||||
} LARGE_INTEGER;
|
||||
|
||||
typedef short SHORT;
|
||||
|
||||
typedef struct {
|
||||
int xuidInvitee;
|
||||
int xuidInviter;
|
||||
DWORD dwTitleID;
|
||||
int hostInfo;
|
||||
bool fFromGameInvite;
|
||||
} XINVITE_INFO, * PXINVITE_INFO;
|
||||
|
||||
typedef XINVITE_INFO INVITE_INFO;
|
||||
|
||||
typedef struct HXUIOBJ {
|
||||
// Stub fields representing the actual Xbox HXUIOBJ structure.
|
||||
int id;
|
||||
const char* name;
|
||||
} HXUIOBJ;
|
||||
|
||||
typedef struct _RTL_CRITICAL_SECTION {
|
||||
// //
|
||||
// // The following field is used for blocking when there is contention for
|
||||
// // the resource
|
||||
// //
|
||||
//
|
||||
union {
|
||||
ULONG_PTR RawEvent[4];
|
||||
} Synchronization;
|
||||
//
|
||||
// //
|
||||
// // The following three fields control entering and exiting the critical
|
||||
// // section for the resource
|
||||
// //
|
||||
//
|
||||
LONG LockCount;
|
||||
LONG RecursionCount;
|
||||
HANDLE OwningThread;
|
||||
} RTL_CRITICAL_SECTION, *PRTL_CRITICAL_SECTION;
|
||||
|
||||
typedef RTL_CRITICAL_SECTION CRITICAL_SECTION;
|
||||
|
||||
#endif // WLINUX_H
|
||||
|
|
@ -13,78 +13,7 @@ typedef unsigned __int64;
|
|||
typedef unsigned __uint64;
|
||||
|
||||
#if defined( __linux__ )
|
||||
#include <cstring>
|
||||
typedef unsigned int DWORD;
|
||||
typedef const char *LPCSTR;
|
||||
typedef bool BOOL;
|
||||
typedef void* LPVOID;
|
||||
typedef char WCHAR;
|
||||
typedef unsigned char BYTE;
|
||||
typedef BYTE* PBYTE;
|
||||
typedef const wchar_t* LPCWSTR;
|
||||
typedef unsigned long long ULONGLONG;
|
||||
typedef int HRESULT;
|
||||
typedef unsigned int UINT;
|
||||
#define TRUE true
|
||||
#define WINAPI
|
||||
typedef void* HANDLE;
|
||||
typedef int INT;
|
||||
typedef char CHAR;
|
||||
typedef void* PVOID;
|
||||
typedef unsigned long* ULONG_PTR;
|
||||
typedef long LONG;
|
||||
typedef void VOID;
|
||||
#define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length))
|
||||
#define ZeroMemory RtlZeroMemory
|
||||
typedef ULONGLONG PlayerUID;
|
||||
typedef DWORD WORD;
|
||||
#define FALSE false
|
||||
typedef struct {
|
||||
DWORD LowPart;
|
||||
long long QuadPart;
|
||||
LONG HighPart;
|
||||
} LARGE_INTEGER;
|
||||
|
||||
typedef short SHORT;
|
||||
|
||||
typedef struct {
|
||||
int xuidInvitee;
|
||||
int xuidInviter;
|
||||
DWORD dwTitleID;
|
||||
int hostInfo;
|
||||
bool fFromGameInvite;
|
||||
} XINVITE_INFO, * PXINVITE_INFO;
|
||||
|
||||
typedef XINVITE_INFO INVITE_INFO;
|
||||
|
||||
typedef struct HXUIOBJ {
|
||||
// Stub fields representing the actual Xbox HXUIOBJ structure.
|
||||
int id;
|
||||
const char* name;
|
||||
} HXUIOBJ;
|
||||
|
||||
typedef struct _RTL_CRITICAL_SECTION {
|
||||
// //
|
||||
// // The following field is used for blocking when there is contention for
|
||||
// // the resource
|
||||
// //
|
||||
//
|
||||
union {
|
||||
ULONG_PTR RawEvent[4];
|
||||
} Synchronization;
|
||||
//
|
||||
// //
|
||||
// // The following three fields control entering and exiting the critical
|
||||
// // section for the resource
|
||||
// //
|
||||
//
|
||||
LONG LockCount;
|
||||
LONG RecursionCount;
|
||||
HANDLE OwningThread;
|
||||
} RTL_CRITICAL_SECTION, *PRTL_CRITICAL_SECTION;
|
||||
|
||||
typedef RTL_CRITICAL_SECTION CRITICAL_SECTION;
|
||||
|
||||
#include "linux/wlinux.h"
|
||||
#include "linux/xbox_valve.h"
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue