Proton/lsteamclient/cppISteamUser_SteamUser013.cpp
2024-02-15 15:53:24 +02:00

124 lines
4.6 KiB
C++

#include "steam_defs.h"
#pragma push_macro("__cdecl")
#undef __cdecl
#define __cdecl
#include "steamworks_sdk_110/steam_api.h"
#pragma pop_macro("__cdecl")
#include "steamclient_private.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SDKVER_110
#include "struct_converters.h"
#include "cppISteamUser_SteamUser013.h"
HSteamUser cppISteamUser_SteamUser013_GetHSteamUser(void *linux_side)
{
HSteamUser _ret;
_ret = ((ISteamUser*)linux_side)->GetHSteamUser();
return (_ret);
}
bool cppISteamUser_SteamUser013_BLoggedOn(void *linux_side)
{
bool _ret;
_ret = ((ISteamUser*)linux_side)->BLoggedOn();
return (_ret);
}
CSteamID cppISteamUser_SteamUser013_GetSteamID(void *linux_side)
{
CSteamID _ret;
_ret = ((ISteamUser*)linux_side)->GetSteamID();
return (_ret);
}
int cppISteamUser_SteamUser013_InitiateGameConnection(void *linux_side, void *pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint32 unIPServer, uint16 usPortServer, bool bSecure)
{
int _ret;
_ret = ((ISteamUser*)linux_side)->InitiateGameConnection((void *)pAuthBlob, (int)cbMaxAuthBlob, (CSteamID)steamIDGameServer, (uint32)unIPServer, (uint16)usPortServer, (bool)bSecure);
return (_ret);
}
void cppISteamUser_SteamUser013_TerminateGameConnection(void *linux_side, uint32 unIPServer, uint16 usPortServer)
{
((ISteamUser*)linux_side)->TerminateGameConnection((uint32)unIPServer, (uint16)usPortServer);
}
void cppISteamUser_SteamUser013_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char *pchExtraInfo)
{
((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo);
}
bool cppISteamUser_SteamUser013_GetUserDataFolder(void *linux_side, char *pchBuffer, int cubBuffer)
{
bool _ret;
_ret = ((ISteamUser*)linux_side)->GetUserDataFolder((char *)pchBuffer, (int)cubBuffer);
return (_ret);
}
void cppISteamUser_SteamUser013_StartVoiceRecording(void *linux_side)
{
((ISteamUser*)linux_side)->StartVoiceRecording();
}
void cppISteamUser_SteamUser013_StopVoiceRecording(void *linux_side)
{
((ISteamUser*)linux_side)->StopVoiceRecording();
}
EVoiceResult cppISteamUser_SteamUser013_GetAvailableVoice(void *linux_side, uint32 *pcbCompressed, uint32 *pcbUncompressed)
{
EVoiceResult _ret;
_ret = ((ISteamUser*)linux_side)->GetAvailableVoice((uint32 *)pcbCompressed, (uint32 *)pcbUncompressed);
return (_ret);
}
EVoiceResult cppISteamUser_SteamUser013_GetVoice(void *linux_side, bool bWantCompressed, void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten, bool bWantUncompressed, void *pUncompressedDestBuffer, uint32 cbUncompressedDestBufferSize, uint32 *nUncompressBytesWritten)
{
EVoiceResult _ret;
_ret = ((ISteamUser*)linux_side)->GetVoice((bool)bWantCompressed, (void *)pDestBuffer, (uint32)cbDestBufferSize, (uint32 *)nBytesWritten, (bool)bWantUncompressed, (void *)pUncompressedDestBuffer, (uint32)cbUncompressedDestBufferSize, (uint32 *)nUncompressBytesWritten);
return (_ret);
}
EVoiceResult cppISteamUser_SteamUser013_DecompressVoice(void *linux_side, const void *pCompressed, uint32 cbCompressed, void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten)
{
EVoiceResult _ret;
_ret = ((ISteamUser*)linux_side)->DecompressVoice((const void *)pCompressed, (uint32)cbCompressed, (void *)pDestBuffer, (uint32)cbDestBufferSize, (uint32 *)nBytesWritten);
return (_ret);
}
HAuthTicket cppISteamUser_SteamUser013_GetAuthSessionTicket(void *linux_side, void *pTicket, int cbMaxTicket, uint32 *pcbTicket)
{
HAuthTicket _ret;
_ret = ((ISteamUser*)linux_side)->GetAuthSessionTicket((void *)pTicket, (int)cbMaxTicket, (uint32 *)pcbTicket);
return (_ret);
}
EBeginAuthSessionResult cppISteamUser_SteamUser013_BeginAuthSession(void *linux_side, const void *pAuthTicket, int cbAuthTicket, CSteamID steamID)
{
EBeginAuthSessionResult _ret;
_ret = ((ISteamUser*)linux_side)->BeginAuthSession((const void *)pAuthTicket, (int)cbAuthTicket, (CSteamID)steamID);
return (_ret);
}
void cppISteamUser_SteamUser013_EndAuthSession(void *linux_side, CSteamID steamID)
{
((ISteamUser*)linux_side)->EndAuthSession((CSteamID)steamID);
}
void cppISteamUser_SteamUser013_CancelAuthTicket(void *linux_side, HAuthTicket hAuthTicket)
{
((ISteamUser*)linux_side)->CancelAuthTicket((HAuthTicket)hAuthTicket);
}
EUserHasLicenseForAppResult cppISteamUser_SteamUser013_UserHasLicenseForApp(void *linux_side, CSteamID steamID, AppId_t appID)
{
EUserHasLicenseForAppResult _ret;
_ret = ((ISteamUser*)linux_side)->UserHasLicenseForApp((CSteamID)steamID, (AppId_t)appID);
return (_ret);
}
#ifdef __cplusplus
}
#endif