forked from cafeberry/cafeberry
fix ps3 compile errors
This commit is contained in:
3 files changed
+9
-2
No files matched your search
@@ -6885,12 +6885,20 @@ HRESULT CMinecraftApp::RegisterDLCData(WCHAR *pType, WCHAR *pBannerName, int iGe
|
|||||||
// ignore the names if we don't recognize them
|
// ignore the names if we don't recognize them
|
||||||
if(pBannerName!=L"")
|
if(pBannerName!=L"")
|
||||||
{
|
{
|
||||||
|
#ifdef __PSVITA__
|
||||||
wcsncpy_s( pDLCData->wchBanner, MAX_BANNERNAME_SIZE, pBannerName, MAX_BANNERNAME_SIZE);
|
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)
|
if(pDataFile[0]!=0)
|
||||||
{
|
{
|
||||||
|
#ifdef __PSVITA__
|
||||||
wcsncpy_s( pDLCData->wchDataFile, MAX_BANNERNAME_SIZE, pDataFile, MAX_BANNERNAME_SIZE);
|
wcsncpy_s( pDLCData->wchDataFile, MAX_BANNERNAME_SIZE, pDataFile, MAX_BANNERNAME_SIZE);
|
||||||
|
#else
|
||||||
|
wcsncpy_s( pDLCData->wchDataFile, pDataFile, MAX_BANNERNAME_SIZE);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -2105,7 +2105,7 @@ void CGameNetworkManager::startAdhocMatching()
|
|||||||
{
|
{
|
||||||
((CPlatformNetworkManagerSony*)s_pPlatformNetworkManager)->startAdhocMatching();
|
((CPlatformNetworkManagerSony*)s_pPlatformNetworkManager)->startAdhocMatching();
|
||||||
}
|
}
|
||||||
#else
|
#elif defined(__PSVITA__)
|
||||||
bool CGameNetworkManager::usingAdhocMode()
|
bool CGameNetworkManager::usingAdhocMode()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
typedef int SOCKET;
|
typedef int SOCKET;
|
||||||
#define INVALID_SOCKET -1
|
#define INVALID_SOCKET -1
|
||||||
#define closesocket socketclose
|
#define closesocket socketclose
|
||||||
#define
|
|
||||||
#elif defined(__ORBIS__)
|
#elif defined(__ORBIS__)
|
||||||
typedef int SOCKET;
|
typedef int SOCKET;
|
||||||
#define INVALID_SOCKET -1
|
#define INVALID_SOCKET -1
|
||||||
|
|||||||
Reference in new issue
Block a user