Proton/lsteamclient/cppISteamUser_SteamUser019.cpp

206 lines
7.4 KiB
C++
Raw Normal View History

2018-01-18 19:24:05 +03:00
#include "steam_defs.h"
#pragma push_macro("__cdecl")
#undef __cdecl
#define __cdecl
2018-01-18 19:24:05 +03:00
#include "steamworks_sdk_142/steam_api.h"
#pragma pop_macro("__cdecl")
#include "steamclient_private.h"
2018-01-18 19:24:05 +03:00
#ifdef __cplusplus
extern "C" {
#endif
#define SDKVER_142
#include "struct_converters.h"
#include "cppISteamUser_SteamUser019.h"
2018-01-18 19:24:05 +03:00
HSteamUser cppISteamUser_SteamUser019_GetHSteamUser(void *linux_side)
{
HSteamUser _ret;
_ret = ((ISteamUser*)linux_side)->GetHSteamUser();
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUser_SteamUser019_BLoggedOn(void *linux_side)
{
bool _ret;
_ret = ((ISteamUser*)linux_side)->BLoggedOn();
return (_ret);
2018-01-18 19:24:05 +03:00
}
CSteamID cppISteamUser_SteamUser019_GetSteamID(void *linux_side)
{
CSteamID _ret;
_ret = ((ISteamUser*)linux_side)->GetSteamID();
return (_ret);
2018-01-18 19:24:05 +03:00
}
int cppISteamUser_SteamUser019_InitiateGameConnection(void *linux_side, void *pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint32 unIPServer, uint16 usPortServer, bool bSecure)
2018-01-18 19:24:05 +03:00
{
int _ret;
_ret = ((ISteamUser*)linux_side)->InitiateGameConnection((void *)pAuthBlob, (int)cbMaxAuthBlob, (CSteamID)steamIDGameServer, (uint32)unIPServer, (uint16)usPortServer, (bool)bSecure);
return (_ret);
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser019_TerminateGameConnection(void *linux_side, uint32 unIPServer, uint16 usPortServer)
{
((ISteamUser*)linux_side)->TerminateGameConnection((uint32)unIPServer, (uint16)usPortServer);
}
void cppISteamUser_SteamUser019_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char *pchExtraInfo)
2018-01-18 19:24:05 +03:00
{
2018-10-29 19:38:13 +03:00
((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUser_SteamUser019_GetUserDataFolder(void *linux_side, char *pchBuffer, int cubBuffer)
2018-01-18 19:24:05 +03:00
{
bool _ret;
_ret = ((ISteamUser*)linux_side)->GetUserDataFolder((char *)pchBuffer, (int)cubBuffer);
return (_ret);
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser019_StartVoiceRecording(void *linux_side)
{
((ISteamUser*)linux_side)->StartVoiceRecording();
}
void cppISteamUser_SteamUser019_StopVoiceRecording(void *linux_side)
{
((ISteamUser*)linux_side)->StopVoiceRecording();
}
EVoiceResult cppISteamUser_SteamUser019_GetAvailableVoice(void *linux_side, uint32 *pcbCompressed, uint32 *pcbUncompressed_Deprecated, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated)
2018-01-18 19:24:05 +03:00
{
EVoiceResult _ret;
_ret = ((ISteamUser*)linux_side)->GetAvailableVoice((uint32 *)pcbCompressed, (uint32 *)pcbUncompressed_Deprecated, (uint32)nUncompressedVoiceDesiredSampleRate_Deprecated);
return (_ret);
2018-01-18 19:24:05 +03:00
}
EVoiceResult cppISteamUser_SteamUser019_GetVoice(void *linux_side, bool bWantCompressed, void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten, bool bWantUncompressed_Deprecated, void *pUncompressedDestBuffer_Deprecated, uint32 cbUncompressedDestBufferSize_Deprecated, uint32 *nUncompressBytesWritten_Deprecated, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated)
2018-01-18 19:24:05 +03:00
{
EVoiceResult _ret;
_ret = ((ISteamUser*)linux_side)->GetVoice((bool)bWantCompressed, (void *)pDestBuffer, (uint32)cbDestBufferSize, (uint32 *)nBytesWritten, (bool)bWantUncompressed_Deprecated, (void *)pUncompressedDestBuffer_Deprecated, (uint32)cbUncompressedDestBufferSize_Deprecated, (uint32 *)nUncompressBytesWritten_Deprecated, (uint32)nUncompressedVoiceDesiredSampleRate_Deprecated);
return (_ret);
2018-01-18 19:24:05 +03:00
}
EVoiceResult cppISteamUser_SteamUser019_DecompressVoice(void *linux_side, const void *pCompressed, uint32 cbCompressed, void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten, uint32 nDesiredSampleRate)
2018-01-18 19:24:05 +03:00
{
EVoiceResult _ret;
_ret = ((ISteamUser*)linux_side)->DecompressVoice((const void *)pCompressed, (uint32)cbCompressed, (void *)pDestBuffer, (uint32)cbDestBufferSize, (uint32 *)nBytesWritten, (uint32)nDesiredSampleRate);
return (_ret);
2018-01-18 19:24:05 +03:00
}
uint32 cppISteamUser_SteamUser019_GetVoiceOptimalSampleRate(void *linux_side)
{
uint32 _ret;
_ret = ((ISteamUser*)linux_side)->GetVoiceOptimalSampleRate();
return (_ret);
2018-01-18 19:24:05 +03:00
}
HAuthTicket cppISteamUser_SteamUser019_GetAuthSessionTicket(void *linux_side, void *pTicket, int cbMaxTicket, uint32 *pcbTicket)
2018-01-18 19:24:05 +03:00
{
HAuthTicket _ret;
_ret = ((ISteamUser*)linux_side)->GetAuthSessionTicket((void *)pTicket, (int)cbMaxTicket, (uint32 *)pcbTicket);
return (_ret);
2018-01-18 19:24:05 +03:00
}
EBeginAuthSessionResult cppISteamUser_SteamUser019_BeginAuthSession(void *linux_side, const void *pAuthTicket, int cbAuthTicket, CSteamID steamID)
2018-01-18 19:24:05 +03:00
{
EBeginAuthSessionResult _ret;
_ret = ((ISteamUser*)linux_side)->BeginAuthSession((const void *)pAuthTicket, (int)cbAuthTicket, (CSteamID)steamID);
return (_ret);
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser019_EndAuthSession(void *linux_side, CSteamID steamID)
{
((ISteamUser*)linux_side)->EndAuthSession((CSteamID)steamID);
}
void cppISteamUser_SteamUser019_CancelAuthTicket(void *linux_side, HAuthTicket hAuthTicket)
{
((ISteamUser*)linux_side)->CancelAuthTicket((HAuthTicket)hAuthTicket);
}
EUserHasLicenseForAppResult cppISteamUser_SteamUser019_UserHasLicenseForApp(void *linux_side, CSteamID steamID, AppId_t appID)
{
EUserHasLicenseForAppResult _ret;
_ret = ((ISteamUser*)linux_side)->UserHasLicenseForApp((CSteamID)steamID, (AppId_t)appID);
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUser_SteamUser019_BIsBehindNAT(void *linux_side)
{
bool _ret;
_ret = ((ISteamUser*)linux_side)->BIsBehindNAT();
return (_ret);
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser019_AdvertiseGame(void *linux_side, CSteamID steamIDGameServer, uint32 unIPServer, uint16 usPortServer)
{
((ISteamUser*)linux_side)->AdvertiseGame((CSteamID)steamIDGameServer, (uint32)unIPServer, (uint16)usPortServer);
}
SteamAPICall_t cppISteamUser_SteamUser019_RequestEncryptedAppTicket(void *linux_side, void *pDataToInclude, int cbDataToInclude)
2018-01-18 19:24:05 +03:00
{
SteamAPICall_t _ret;
_ret = ((ISteamUser*)linux_side)->RequestEncryptedAppTicket((void *)pDataToInclude, (int)cbDataToInclude);
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUser_SteamUser019_GetEncryptedAppTicket(void *linux_side, void *pTicket, int cbMaxTicket, uint32 *pcbTicket)
2018-01-18 19:24:05 +03:00
{
bool _ret;
_ret = ((ISteamUser*)linux_side)->GetEncryptedAppTicket((void *)pTicket, (int)cbMaxTicket, (uint32 *)pcbTicket);
return (_ret);
2018-01-18 19:24:05 +03:00
}
int cppISteamUser_SteamUser019_GetGameBadgeLevel(void *linux_side, int nSeries, bool bFoil)
{
int _ret;
_ret = ((ISteamUser*)linux_side)->GetGameBadgeLevel((int)nSeries, (bool)bFoil);
return (_ret);
2018-01-18 19:24:05 +03:00
}
int cppISteamUser_SteamUser019_GetPlayerSteamLevel(void *linux_side)
{
int _ret;
_ret = ((ISteamUser*)linux_side)->GetPlayerSteamLevel();
return (_ret);
2018-01-18 19:24:05 +03:00
}
SteamAPICall_t cppISteamUser_SteamUser019_RequestStoreAuthURL(void *linux_side, const char *pchRedirectURL)
2018-01-18 19:24:05 +03:00
{
SteamAPICall_t _ret;
_ret = ((ISteamUser*)linux_side)->RequestStoreAuthURL((const char *)pchRedirectURL);
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUser_SteamUser019_BIsPhoneVerified(void *linux_side)
{
bool _ret;
_ret = ((ISteamUser*)linux_side)->BIsPhoneVerified();
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUser_SteamUser019_BIsTwoFactorEnabled(void *linux_side)
{
bool _ret;
_ret = ((ISteamUser*)linux_side)->BIsTwoFactorEnabled();
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUser_SteamUser019_BIsPhoneIdentifying(void *linux_side)
{
bool _ret;
_ret = ((ISteamUser*)linux_side)->BIsPhoneIdentifying();
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUser_SteamUser019_BIsPhoneRequiringVerification(void *linux_side)
{
bool _ret;
_ret = ((ISteamUser*)linux_side)->BIsPhoneRequiringVerification();
return (_ret);
2018-01-18 19:24:05 +03:00
}
#ifdef __cplusplus
}
#endif