mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-03 06:29:05 +01:00
linux (compat): Add linux to most Win64 guards
This commit is contained in:
1 parent
8cf5675892
commit
9626065598
180 files changed
+941
-935
No files matched your search
@@ -41,7 +41,7 @@
|
||||
#include "../Minecraft.World/DurangoStats.h"
|
||||
#endif
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
#include "../../Windows64/Network/PlatformNetworkManagerWindows.h"
|
||||
#include "../../Windows64/Network/NetworkPlayerWindows.h"
|
||||
#include "../../Windows64/Windows64_Xuid.h"
|
||||
@@ -84,7 +84,9 @@ void CGameNetworkManager::Initialise()
|
||||
s_pPlatformNetworkManager = new CPlatformNetworkManagerSony();
|
||||
#elif defined _DURANGO
|
||||
s_pPlatformNetworkManager = new CPlatformNetworkManagerDurango();
|
||||
#elif defined _WINDOWS64
|
||||
#elif defined(_WINDOWS64) || defined(__linux__)
|
||||
s_pPlatformNetworkManager = new CPlatformNetworkManagerWindows();
|
||||
#elif defined __linux__
|
||||
s_pPlatformNetworkManager = new CPlatformNetworkManagerWindows();
|
||||
#else
|
||||
s_pPlatformNetworkManager = new CPlatformNetworkManagerStub();
|
||||
@@ -249,7 +251,7 @@ bool CGameNetworkManager::StartNetworkGame(Minecraft *minecraft, LPVOID lpParame
|
||||
wstring fileRoot = L"GAME:\\res\\TitleUpdate\\GameRules\\" + param->levelGen->getBaseSavePath();
|
||||
#endif
|
||||
#else
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
wstring fileRoot = L"Windows64Media\\Tutorial\\" + param->levelGen->getBaseSavePath();
|
||||
File root(fileRoot);
|
||||
if(!root.exists()) fileRoot = L"Windows64\\Tutorial\\" + param->levelGen->getBaseSavePath();
|
||||
@@ -433,7 +435,7 @@ bool CGameNetworkManager::StartNetworkGame(Minecraft *minecraft, LPVOID lpParame
|
||||
|
||||
{
|
||||
shared_ptr<PreLoginPacket> preLogin = std::make_shared<PreLoginPacket>(minecraft->user->name);
|
||||
#if defined(_WINDOWS64) && !defined(MINECRAFT_SERVER_BUILD)
|
||||
#if (defined(_WINDOWS64) || defined(__linux__)) && !defined(MINECRAFT_SERVER_BUILD)
|
||||
std::string joinHost;
|
||||
int joinPort = 0;
|
||||
extern bool Win64_GetJoinAddress(std::string& host, int& port);
|
||||
@@ -828,7 +830,7 @@ void CGameNetworkManager::CancelJoinGame(LPVOID lpParam)
|
||||
#ifdef _XBOX_ONE
|
||||
s_pPlatformNetworkManager->CancelJoinGame();
|
||||
#endif
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1590,7 +1592,7 @@ void CGameNetworkManager::CreateSocket( INetworkPlayer *pNetworkPlayer, bool loc
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
// Non-host split-screen: open a dedicated TCP connection for this pad
|
||||
if (localPlayer && !g_NetworkManager.IsHost() && g_NetworkManager.IsInGameplay())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user