mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-06-12 05:07:43 +02:00
lsteamclient: Add some missing exports for SDK 1.58.
This commit is contained in:

committed by
Arkadiusz Hiler

parent
19c0eec97d
commit
435b67aaf7
@ -820,6 +820,8 @@ static bool (*steamclient_BGetCallback)(HSteamPipe a, CallbackMsg_t *b, int32 *c
|
||||
static bool (*steamclient_GetAPICallResult)(HSteamPipe, SteamAPICall_t, void *, int, int, bool *);
|
||||
static bool (*steamclient_FreeLastCallback)(HSteamPipe);
|
||||
static void (*steamclient_ReleaseThreadLocalMemory)(int);
|
||||
static bool (*steamclient_IsKnownInterface)( const char *pchVersion );
|
||||
static void (*steamclient_NotifyMissingInterface)( HSteamPipe hSteamPipe, const char *pchVersion );
|
||||
|
||||
static int load_steamclient(void)
|
||||
{
|
||||
@ -885,6 +887,18 @@ static int load_steamclient(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
steamclient_IsKnownInterface = dlsym(steamclient_lib, "Steam_IsKnownInterface");
|
||||
if(!steamclient_IsKnownInterface){
|
||||
ERR("unable to load IsKnownInterface method\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
steamclient_NotifyMissingInterface = dlsym(steamclient_lib, "Steam_NotifyMissingInterface");
|
||||
if(!steamclient_NotifyMissingInterface){
|
||||
ERR("unable to load NotifyMissingInterface method\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
pthread_mutex_init(&callback_queue_mutex, NULL);
|
||||
pthread_cond_init(&callback_queue_callback_event, NULL);
|
||||
pthread_cond_init(&callback_queue_ready_event, NULL);
|
||||
@ -1110,3 +1124,17 @@ HSteamPipe after_steam_pipe_create(HSteamPipe pipe)
|
||||
|
||||
return pipe;
|
||||
}
|
||||
|
||||
bool CDECL Steam_IsKnownInterface( const char *pchVersion )
|
||||
{
|
||||
TRACE("%s\n", pchVersion);
|
||||
load_steamclient();
|
||||
return steamclient_IsKnownInterface( pchVersion );
|
||||
}
|
||||
|
||||
void CDECL Steam_NotifyMissingInterface( HSteamPipe hSteamPipe, const char *pchVersion )
|
||||
{
|
||||
TRACE("%u %s\n", hSteamPipe, pchVersion);
|
||||
load_steamclient();
|
||||
steamclient_NotifyMissingInterface( hSteamPipe, pchVersion );
|
||||
}
|
||||
|
Reference in New Issue
Block a user