add ps4 support

This commit is contained in:
2026-08-02 22:06:27 +03:00
parent 94f1cefcf9
commit 92209cf909
36 changed files with 257 additions and 123 deletions
+3 -3
View File
@@ -27,7 +27,7 @@
#include "..\Minecraft.World\EntityIO.h"
#if defined(_XBOX) || defined(_WINDOWS64) || defined(DISABLE_PSN)
#include "Xbox\Network\NetworkPlayerXbox.h"
#elif !defined(DISABLE_PSN) && defined(__PS3__) || defined(__ORBIS__)
#elif !defined(DISABLE_PSN) && (defined(__PS3__) || defined(__ORBIS__))
#include "Common\Network\Sony\NetworkPlayerSony.h"
#endif
@@ -53,7 +53,7 @@ PlayerList::PlayerList(MinecraftServer *server)
//int viewDistance = server->settings->getInt(L"view-distance", 10);
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(DISABLE_PSN) || defined(_DISABLE_XBLIVE)
maxPlayers = MINECRAFT_NET_MAX_PLAYERS;
#else
maxPlayers = server->settings->getInt(L"max-players", 20);
@@ -94,7 +94,7 @@ void PlayerList::placeNewPlayer(Connection *connection, shared_ptr<ServerPlayer>
player->setPlayerGamePrivilege(Player::ePlayerGamePrivilege_HOST,1);
}
#if !defined(DISABLE_PSN) && defined(__PS3__) || defined(__ORBIS__)
#if !defined(DISABLE_PSN) && (defined(__PS3__) || defined(__ORBIS__))
// PS3 networking library doesn't automatically assign PlayerUIDs to the network players for anything remote, so need to tell it what to set from the data in this packet now
if( !g_NetworkManager.IsLocalGame() )
{