lsteamclient: Call struct converters

This commit is contained in:
Andrew Eikum
2018-10-29 11:21:49 -05:00
parent ab30d847d9
commit c7d6c1f18b
50 changed files with 630 additions and 105 deletions

View File

@@ -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)