mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-26 14:45:48 +03:00
71 lines
2.6 KiB
C++
71 lines
2.6 KiB
C++
#include "steam_defs.h"
|
|
#pragma push_macro("__cdecl")
|
|
#undef __cdecl
|
|
#include "steamworks_sdk_103/steam_api.h"
|
|
#pragma pop_macro("__cdecl")
|
|
#include "steamclient_private.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#define SDKVER_103
|
|
#include "struct_converters.h"
|
|
#include "cppISteamUser_SteamUser011.h"
|
|
HSteamUser cppISteamUser_SteamUser011_GetHSteamUser(void *linux_side)
|
|
{
|
|
return ((ISteamUser*)linux_side)->GetHSteamUser();
|
|
}
|
|
|
|
bool cppISteamUser_SteamUser011_BLoggedOn(void *linux_side)
|
|
{
|
|
return ((ISteamUser*)linux_side)->BLoggedOn();
|
|
}
|
|
|
|
CSteamID cppISteamUser_SteamUser011_GetSteamID(void *linux_side)
|
|
{
|
|
return ((ISteamUser*)linux_side)->GetSteamID();
|
|
}
|
|
|
|
int cppISteamUser_SteamUser011_InitiateGameConnection(void *linux_side, void * pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint32 unIPServer, uint16 usPortServer, bool bSecure)
|
|
{
|
|
return ((ISteamUser*)linux_side)->InitiateGameConnection((void *)pAuthBlob, (int)cbMaxAuthBlob, (CSteamID)steamIDGameServer, (uint32)unIPServer, (uint16)usPortServer, (bool)bSecure);
|
|
}
|
|
|
|
void cppISteamUser_SteamUser011_TerminateGameConnection(void *linux_side, uint32 unIPServer, uint16 usPortServer)
|
|
{
|
|
((ISteamUser*)linux_side)->TerminateGameConnection((uint32)unIPServer, (uint16)usPortServer);
|
|
}
|
|
|
|
void cppISteamUser_SteamUser011_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo)
|
|
{
|
|
((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo);
|
|
}
|
|
|
|
bool cppISteamUser_SteamUser011_GetUserDataFolder(void *linux_side, char * pchBuffer, int cubBuffer)
|
|
{
|
|
return ((ISteamUser*)linux_side)->GetUserDataFolder((char *)pchBuffer, (int)cubBuffer);
|
|
}
|
|
|
|
void cppISteamUser_SteamUser011_StartVoiceRecording(void *linux_side)
|
|
{
|
|
((ISteamUser*)linux_side)->StartVoiceRecording();
|
|
}
|
|
|
|
void cppISteamUser_SteamUser011_StopVoiceRecording(void *linux_side)
|
|
{
|
|
((ISteamUser*)linux_side)->StopVoiceRecording();
|
|
}
|
|
|
|
EVoiceResult cppISteamUser_SteamUser011_GetCompressedVoice(void *linux_side, void * pDestBuffer, uint32 cbDestBufferSize, uint32 * nBytesWritten)
|
|
{
|
|
return ((ISteamUser*)linux_side)->GetCompressedVoice((void *)pDestBuffer, (uint32)cbDestBufferSize, (uint32 *)nBytesWritten);
|
|
}
|
|
|
|
EVoiceResult cppISteamUser_SteamUser011_DecompressVoice(void *linux_side, void * pCompressed, uint32 cbCompressed, void * pDestBuffer, uint32 cbDestBufferSize, uint32 * nBytesWritten)
|
|
{
|
|
return ((ISteamUser*)linux_side)->DecompressVoice((void *)pCompressed, (uint32)cbCompressed, (void *)pDestBuffer, (uint32)cbDestBufferSize, (uint32 *)nBytesWritten);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|