diff --git a/Minecraft.Client/Common/Consoles_App.cpp b/Minecraft.Client/Common/Consoles_App.cpp index dc73db51..0282a639 100644 --- a/Minecraft.Client/Common/Consoles_App.cpp +++ b/Minecraft.Client/Common/Consoles_App.cpp @@ -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 diff --git a/Minecraft.Client/Common/Network/GameNetworkManager.cpp b/Minecraft.Client/Common/Network/GameNetworkManager.cpp index 0823939f..e7a63676 100644 --- a/Minecraft.Client/Common/Network/GameNetworkManager.cpp +++ b/Minecraft.Client/Common/Network/GameNetworkManager.cpp @@ -2105,7 +2105,7 @@ void CGameNetworkManager::startAdhocMatching() { ((CPlatformNetworkManagerSony*)s_pPlatformNetworkManager)->startAdhocMatching(); } -#else +#elif defined(__PSVITA__) bool CGameNetworkManager::usingAdhocMode() { return false; diff --git a/Minecraft.Client/Common/Network/NetworkSocketLayer.h b/Minecraft.Client/Common/Network/NetworkSocketLayer.h index 3b415b5d..69eed69a 100644 --- a/Minecraft.Client/Common/Network/NetworkSocketLayer.h +++ b/Minecraft.Client/Common/Network/NetworkSocketLayer.h @@ -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