mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-31 03:37:35 +01:00
lsteamclient: Support ISteamRemotePlay
This commit is contained in:
parent
19b53264bd
commit
19ece0270b
7 changed files with 147 additions and 1 deletions
|
|
@ -0,0 +1,43 @@
|
|||
#include "steam_defs.h"
|
||||
#include "steamworks_sdk_146/steam_api.h"
|
||||
#include "steamworks_sdk_146/steamnetworkingtypes.h"
|
||||
#include "steamclient_private.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#define SDKVER_146
|
||||
#include "struct_converters.h"
|
||||
#include "cppISteamRemotePlay_STEAMREMOTEPLAY_INTERFACE_VERSION001.h"
|
||||
uint32 cppISteamRemotePlay_STEAMREMOTEPLAY_INTERFACE_VERSION001_GetSessionCount(void *linux_side)
|
||||
{
|
||||
return ((ISteamRemotePlay*)linux_side)->GetSessionCount();
|
||||
}
|
||||
|
||||
uint32 cppISteamRemotePlay_STEAMREMOTEPLAY_INTERFACE_VERSION001_GetSessionID(void *linux_side, int iSessionIndex)
|
||||
{
|
||||
return ((ISteamRemotePlay*)linux_side)->GetSessionID((int)iSessionIndex);
|
||||
}
|
||||
|
||||
CSteamID cppISteamRemotePlay_STEAMREMOTEPLAY_INTERFACE_VERSION001_GetSessionSteamID(void *linux_side, uint32 unSessionID)
|
||||
{
|
||||
return ((ISteamRemotePlay*)linux_side)->GetSessionSteamID((uint32)unSessionID);
|
||||
}
|
||||
|
||||
const char * cppISteamRemotePlay_STEAMREMOTEPLAY_INTERFACE_VERSION001_GetSessionClientName(void *linux_side, uint32 unSessionID)
|
||||
{
|
||||
return ((ISteamRemotePlay*)linux_side)->GetSessionClientName((uint32)unSessionID);
|
||||
}
|
||||
|
||||
ESteamDeviceFormFactor cppISteamRemotePlay_STEAMREMOTEPLAY_INTERFACE_VERSION001_GetSessionClientFormFactor(void *linux_side, uint32 unSessionID)
|
||||
{
|
||||
return ((ISteamRemotePlay*)linux_side)->GetSessionClientFormFactor((uint32)unSessionID);
|
||||
}
|
||||
|
||||
bool cppISteamRemotePlay_STEAMREMOTEPLAY_INTERFACE_VERSION001_BGetSessionClientResolution(void *linux_side, uint32 unSessionID, int * pnResolutionX, int * pnResolutionY)
|
||||
{
|
||||
return ((ISteamRemotePlay*)linux_side)->BGetSessionClientResolution((uint32)unSessionID, (int *)pnResolutionX, (int *)pnResolutionY);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue