mirror of
https://github.com/ValveSoftware/Proton.git
synced 2026-04-20 03:01:58 -04:00
lsteamclient: Call struct converters
This commit is contained in:
@@ -37,7 +37,11 @@ bool cppISteamNetworking_SteamNetworking005_CloseP2PChannelWithUser(void *linux_
|
||||
|
||||
bool cppISteamNetworking_SteamNetworking005_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_142(pConnectionState, &lin_pConnectionState);
|
||||
bool retval = ((ISteamNetworking*)linux_side)->GetP2PSessionState((CSteamID)steamIDRemote, &lin_pConnectionState);
|
||||
lin_to_win_struct_P2PSessionState_t_142(&lin_pConnectionState, pConnectionState);
|
||||
return retval;
|
||||
}
|
||||
|
||||
bool cppISteamNetworking_SteamNetworking005_AllowP2PPacketRelay(void *linux_side, bool bAllow)
|
||||
|
||||
Reference in New Issue
Block a user