mirror of
https://github.com/ValveSoftware/Proton
synced 2025-08-31 06:35:23 +00:00
lsteamclient: Call struct converters
This commit is contained in:
@@ -32,7 +32,11 @@ bool cppISteamNetworking_SteamNetworking004_CloseP2PSessionWithUser(void *linux_
|
||||
|
||||
bool cppISteamNetworking_SteamNetworking004_GetP2PSessionState(void *linux_side, CSteamID steamIDRemote, P2PSessionState_t * pConnectionState)
|
||||
{
|
||||
return ((ISteamNetworking*)linux_side)->GetP2PSessionState((CSteamID)steamIDRemote, (P2PSessionState_t *)pConnectionState);
|
||||
P2PSessionState_t lin_pConnectionState;
|
||||
win_to_lin_struct_P2PSessionState_t_112(pConnectionState, &lin_pConnectionState);
|
||||
bool retval = ((ISteamNetworking*)linux_side)->GetP2PSessionState((CSteamID)steamIDRemote, &lin_pConnectionState);
|
||||
lin_to_win_struct_P2PSessionState_t_112(&lin_pConnectionState, pConnectionState);
|
||||
return retval;
|
||||
}
|
||||
|
||||
SNetListenSocket_t cppISteamNetworking_SteamNetworking004_CreateListenSocket(void *linux_side, int nVirtualP2PPort, uint32 nIP, uint16 nPort, bool bAllowUseOfPacketRelay)
|
||||
|
Reference in New Issue
Block a user