fix ps3 compile errors

This commit is contained in:
2026-08-04 07:40:52 +03:00
parent ea3621971f
commit 64e95393c8
3 changed files with 9 additions and 2 deletions
+8
View File
@@ -6885,12 +6885,20 @@ HRESULT CMinecraftApp::RegisterDLCData(WCHAR *pType, WCHAR *pBannerName, int iGe
// ignore the names if we don't recognize them
if(pBannerName!=L"")
{
#ifdef __PSVITA__
wcsncpy_s( pDLCData->wchBanner, MAX_BANNERNAME_SIZE, pBannerName, MAX_BANNERNAME_SIZE);
#else
wcsncpy_s( pDLCData->wchBanner, pBannerName, MAX_BANNERNAME_SIZE);
#endif
}
if(pDataFile[0]!=0)
{
#ifdef __PSVITA__
wcsncpy_s( pDLCData->wchDataFile, MAX_BANNERNAME_SIZE, pDataFile, MAX_BANNERNAME_SIZE);
#else
wcsncpy_s( pDLCData->wchDataFile, pDataFile, MAX_BANNERNAME_SIZE);
#endif
}
#endif
@@ -2105,7 +2105,7 @@ void CGameNetworkManager::startAdhocMatching()
{
((CPlatformNetworkManagerSony*)s_pPlatformNetworkManager)->startAdhocMatching();
}
#else
#elif defined(__PSVITA__)
bool CGameNetworkManager::usingAdhocMode()
{
return false;
@@ -43,7 +43,6 @@
typedef int SOCKET;
#define INVALID_SOCKET -1
#define closesocket socketclose
#define
#elif defined(__ORBIS__)
typedef int SOCKET;
#define INVALID_SOCKET -1