mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-23 20:38:07 +01:00
ISteamNetworkingSocketsSerialized004
This commit is contained in:
parent
a22ca27c26
commit
f6a2c0e5ef
4 changed files with 32 additions and 3 deletions
|
@ -471,8 +471,10 @@ void *Steam_Client::GetISteamGenericInterface( HSteamUser hSteamUser, HSteamPipe
|
|||
return (void *)(ISteamNetworkingSocketsSerialized002 *)steam_networking_sockets_serialized_temp;
|
||||
} else if (strcmp(pchVersion, "SteamNetworkingSocketsSerialized003") == 0) {
|
||||
return (void *)(ISteamNetworkingSocketsSerialized003 *)steam_networking_sockets_serialized_temp;
|
||||
} else if (strcmp(pchVersion, "SteamNetworkingSocketsSerialized004") == 0) {
|
||||
return (void *)(ISteamNetworkingSocketsSerialized004 *)steam_networking_sockets_serialized_temp;
|
||||
} else {
|
||||
return (void *)(ISteamNetworkingSocketsSerialized003 *)steam_networking_sockets_serialized_temp;
|
||||
return (void *)(ISteamNetworkingSocketsSerialized004 *)steam_networking_sockets_serialized_temp;
|
||||
}
|
||||
} else if (strstr(pchVersion, "SteamNetworkingSockets") == pchVersion) {
|
||||
Steam_Networking_Sockets *steam_networking_sockets_temp;
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
class Steam_Networking_Sockets_Serialized :
|
||||
public ISteamNetworkingSocketsSerialized002,
|
||||
public ISteamNetworkingSocketsSerialized003
|
||||
public ISteamNetworkingSocketsSerialized003,
|
||||
public ISteamNetworkingSocketsSerialized004
|
||||
{
|
||||
class Settings *settings;
|
||||
class Networking *network;
|
||||
|
@ -116,6 +117,17 @@ void PostConnectionStateMsg( const void *pMsg, uint32 cbMsg )
|
|||
PRINT_DEBUG("Steam_Networking_Sockets_Serialized::PostConnectionStateMsg\n");
|
||||
}
|
||||
|
||||
bool GetSTUNServer(int dont_know, char *buf, unsigned int len)
|
||||
{
|
||||
PRINT_DEBUG("Steam_Networking_Sockets_Serialized::GetSTUNServer %i %p %u\n", dont_know, buf, len);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool BAllowDirectConnectToPeer(SteamNetworkingIdentity const &identity)
|
||||
{
|
||||
PRINT_DEBUG("Steam_Networking_Sockets_Serialized::BAllowDirectConnectToPeer\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
void RunCallbacks()
|
||||
{
|
||||
|
|
|
@ -31,6 +31,21 @@ public:
|
|||
virtual void PostConnectionStateMsg( const void *pMsg, uint32 cbMsg ) = 0;
|
||||
};
|
||||
|
||||
class ISteamNetworkingSocketsSerialized004
|
||||
{
|
||||
public:
|
||||
virtual void SendP2PRendezvous( CSteamID steamIDRemote, uint32 unConnectionIDSrc, const void *pMsgRendezvous, uint32 cbRendezvous ) = 0;
|
||||
virtual void SendP2PConnectionFailure( CSteamID steamIDRemote, uint32 unConnectionIDDest, uint32 nReason, const char *pszReason ) = 0;
|
||||
virtual SteamAPICall_t GetCertAsync() = 0;
|
||||
virtual int GetNetworkConfigJSON( void *buf, uint32 cbBuf, const char *pszLauncherPartner ) = 0;
|
||||
virtual void CacheRelayTicket( const void *pTicket, uint32 cbTicket ) = 0;
|
||||
virtual uint32 GetCachedRelayTicketCount() = 0;
|
||||
virtual int GetCachedRelayTicket( uint32 idxTicket, void *buf, uint32 cbBuf ) = 0;
|
||||
virtual void PostConnectionStateMsg( const void *pMsg, uint32 cbMsg ) = 0;
|
||||
virtual bool GetSTUNServer(int dont_know, char *buf, unsigned int len) = 0;
|
||||
virtual bool BAllowDirectConnectToPeer(SteamNetworkingIdentity const &identity) = 0;
|
||||
};
|
||||
|
||||
struct SteamNetworkingSocketsConfigUpdated_t
|
||||
{
|
||||
enum { k_iCallback = k_iSteamNetworkingCallbacks + 95 };
|
||||
|
|
|
@ -98,8 +98,8 @@
|
|||
#include "isteamnetworking003.h"
|
||||
#include "isteamnetworking002.h"
|
||||
#include "isteamnetworking001.h"
|
||||
#include "isteamnetworkingsocketsserialized.h"
|
||||
#include "isteamnetworkingsockets.h"
|
||||
#include "isteamnetworkingsocketsserialized.h"
|
||||
#include "isteamnetworkingutils.h"
|
||||
#include "isteamnetworkingutils001.h"
|
||||
#include "isteamnetworkingutils002.h"
|
||||
|
|
Loading…
Reference in a new issue