mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-29 17:33:39 +00:00
Remove remaining primitive locals from system helpers
This commit is contained in:
parent
a2ddb7c2f0
commit
3e7a72c9d3
|
|
@ -712,7 +712,7 @@ bool CPlatformNetworkManagerSony::LeaveGame(bool bMigrateHost)
|
|||
if( socket != NULL )
|
||||
{
|
||||
//printf("Waiting for socket closed event\n");
|
||||
DWORD result = socket->m_socketClosedEvent->WaitForSignal(INFINITE);
|
||||
socket->m_socketClosedEvent->WaitForSignal(INFINITE);
|
||||
|
||||
// The session might be gone once the socket releases
|
||||
if( IsInSession() )
|
||||
|
|
@ -1185,9 +1185,9 @@ bool CPlatformNetworkManagerSony::GetGameSessionInfo(int iPad, SessionID session
|
|||
if( m_currentSearchResultsCount[iPad] > 0 )
|
||||
{
|
||||
// Loop through all the results.
|
||||
for( DWORD dwResult = 0; dwResult < m_currentSearchResultsCount[iPad]; dwResult++ )
|
||||
for( int resultIndex = 0; resultIndex < m_currentSearchResultsCount[iPad]; ++resultIndex )
|
||||
{
|
||||
pSearchResult = &m_pCurrentSearchResults[iPad]->pResults[dwResult];
|
||||
pSearchResult = &m_pCurrentSearchResults[iPad]->pResults[resultIndex];
|
||||
|
||||
if(memcmp( &pSearchResult->info.sessionID, &sessionId, sizeof(SessionID) ) != 0) continue;
|
||||
|
||||
|
|
@ -1211,7 +1211,7 @@ bool CPlatformNetworkManagerSony::GetGameSessionInfo(int iPad, SessionID session
|
|||
if(!foundSession) break;
|
||||
|
||||
// See if this result was contacted successfully via QoS probes.
|
||||
pxnqi = &m_pCurrentQoSResult[iPad]->axnqosinfo[dwResult];
|
||||
pxnqi = &m_pCurrentQoSResult[iPad]->axnqosinfo[resultIndex];
|
||||
if( pxnqi->bFlags & XNET_XNQOSINFO_TARGET_CONTACTED )
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "../Util/ArrayWithLength.h"
|
||||
|
||||
|
|
@ -35,5 +36,5 @@ public:
|
|||
};
|
||||
|
||||
#define MAKE_FOURCC(ch0, ch1, ch2, ch3) \
|
||||
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
|
||||
((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
|
||||
(static_cast<std::uint32_t>(static_cast<std::uint8_t>(ch0)) | (static_cast<std::uint32_t>(static_cast<std::uint8_t>(ch1)) << 8) | \
|
||||
(static_cast<std::uint32_t>(static_cast<std::uint8_t>(ch2)) << 16) | (static_cast<std::uint32_t>(static_cast<std::uint8_t>(ch3)) << 24))
|
||||
|
|
|
|||
Loading…
Reference in a new issue