mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-04-23 23:03:35 +03:00
lsteamclient: Add some missing exports for SDK 1.58.
This commit is contained in:
parent
629e7dd939
commit
b04135b480
@ -56,6 +56,9 @@
|
|||||||
56 stub hid_write
|
56 stub hid_write
|
||||||
57 stub hid_write_output_report
|
57 stub hid_write_output_report
|
||||||
|
|
||||||
|
@ cdecl Steam_IsKnownInterface(ptr)
|
||||||
|
@ cdecl Steam_NotifyMissingInterface(long ptr)
|
||||||
|
|
||||||
# GameOverlayRenderer entry points
|
# GameOverlayRenderer entry points
|
||||||
@ stub BOverlayNeedsPresent
|
@ stub BOverlayNeedsPresent
|
||||||
@ stub IsOverlayEnabled
|
@ stub IsOverlayEnabled
|
||||||
|
@ -828,6 +828,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_GetAPICallResult)(HSteamPipe, SteamAPICall_t, void *, int, int, bool *);
|
||||||
static bool (*steamclient_FreeLastCallback)(HSteamPipe);
|
static bool (*steamclient_FreeLastCallback)(HSteamPipe);
|
||||||
static void (*steamclient_ReleaseThreadLocalMemory)(int);
|
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)
|
static int load_steamclient(void)
|
||||||
{
|
{
|
||||||
@ -893,6 +895,18 @@ static int load_steamclient(void)
|
|||||||
return 0;
|
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_mutex_init(&callback_queue_mutex, NULL);
|
||||||
pthread_cond_init(&callback_queue_callback_event, NULL);
|
pthread_cond_init(&callback_queue_callback_event, NULL);
|
||||||
pthread_cond_init(&callback_queue_ready_event, NULL);
|
pthread_cond_init(&callback_queue_ready_event, NULL);
|
||||||
@ -1112,3 +1126,17 @@ HSteamPipe after_steam_pipe_create(HSteamPipe pipe)
|
|||||||
|
|
||||||
return pipe;
|
return pipe;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Steam_IsKnownInterface( const char *pchVersion )
|
||||||
|
{
|
||||||
|
TRACE("%s\n", pchVersion);
|
||||||
|
load_steamclient();
|
||||||
|
return steamclient_IsKnownInterface( pchVersion );
|
||||||
|
}
|
||||||
|
|
||||||
|
void Steam_NotifyMissingInterface( HSteamPipe hSteamPipe, const char *pchVersion )
|
||||||
|
{
|
||||||
|
TRACE("%u %s\n", hSteamPipe, pchVersion);
|
||||||
|
load_steamclient();
|
||||||
|
steamclient_NotifyMissingInterface( hSteamPipe, pchVersion );
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user