2
0
mirror of https://github.com/ValveSoftware/Proton synced 2025-08-31 06:35:23 +00:00

lsteamclient: Always use a return result variable.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon
2023-09-23 21:44:20 +02:00
parent 56b828c365
commit 536b237731
233 changed files with 29134 additions and 10252 deletions

View File

@@ -13,22 +13,30 @@ extern "C" {
#include "cppISteamUser_SteamUser014.h"
HSteamUser cppISteamUser_SteamUser014_GetHSteamUser(void *linux_side)
{
return ((ISteamUser*)linux_side)->GetHSteamUser();
HSteamUser _ret;
_ret = ((ISteamUser*)linux_side)->GetHSteamUser();
return (_ret);
}
bool cppISteamUser_SteamUser014_BLoggedOn(void *linux_side)
{
return ((ISteamUser*)linux_side)->BLoggedOn();
bool _ret;
_ret = ((ISteamUser*)linux_side)->BLoggedOn();
return (_ret);
}
CSteamID cppISteamUser_SteamUser014_GetSteamID(void *linux_side)
{
return ((ISteamUser*)linux_side)->GetSteamID();
CSteamID _ret;
_ret = ((ISteamUser*)linux_side)->GetSteamID();
return (_ret);
}
int cppISteamUser_SteamUser014_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);
int _ret;
_ret = ((ISteamUser*)linux_side)->InitiateGameConnection((void *)pAuthBlob, (int)cbMaxAuthBlob, (CSteamID)steamIDGameServer, (uint32)unIPServer, (uint16)usPortServer, (bool)bSecure);
return (_ret);
}
void cppISteamUser_SteamUser014_TerminateGameConnection(void *linux_side, uint32 unIPServer, uint16 usPortServer)
@@ -43,7 +51,9 @@ void cppISteamUser_SteamUser014_TrackAppUsageEvent(void *linux_side, CGameID gam
bool cppISteamUser_SteamUser014_GetUserDataFolder(void *linux_side, char *pchBuffer, int cubBuffer)
{
return ((ISteamUser*)linux_side)->GetUserDataFolder((char *)pchBuffer, (int)cubBuffer);
bool _ret;
_ret = ((ISteamUser*)linux_side)->GetUserDataFolder((char *)pchBuffer, (int)cubBuffer);
return (_ret);
}
void cppISteamUser_SteamUser014_StartVoiceRecording(void *linux_side)
@@ -58,27 +68,37 @@ void cppISteamUser_SteamUser014_StopVoiceRecording(void *linux_side)
EVoiceResult cppISteamUser_SteamUser014_GetAvailableVoice(void *linux_side, uint32 *pcbCompressed, uint32 *pcbUncompressed)
{
return ((ISteamUser*)linux_side)->GetAvailableVoice((uint32 *)pcbCompressed, (uint32 *)pcbUncompressed);
EVoiceResult _ret;
_ret = ((ISteamUser*)linux_side)->GetAvailableVoice((uint32 *)pcbCompressed, (uint32 *)pcbUncompressed);
return (_ret);
}
EVoiceResult cppISteamUser_SteamUser014_GetVoice(void *linux_side, bool bWantCompressed, void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten, bool bWantUncompressed, void *pUncompressedDestBuffer, uint32 cbUncompressedDestBufferSize, uint32 *nUncompressBytesWritten)
{
return ((ISteamUser*)linux_side)->GetVoice((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_SteamUser014_DecompressVoice(void *linux_side, const void *pCompressed, uint32 cbCompressed, void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten)
{
return ((ISteamUser*)linux_side)->DecompressVoice((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_SteamUser014_GetAuthSessionTicket(void *linux_side, void *pTicket, int cbMaxTicket, uint32 *pcbTicket)
{
return ((ISteamUser*)linux_side)->GetAuthSessionTicket((void *)pTicket, (int)cbMaxTicket, (uint32 *)pcbTicket);
HAuthTicket _ret;
_ret = ((ISteamUser*)linux_side)->GetAuthSessionTicket((void *)pTicket, (int)cbMaxTicket, (uint32 *)pcbTicket);
return (_ret);
}
EBeginAuthSessionResult cppISteamUser_SteamUser014_BeginAuthSession(void *linux_side, const void *pAuthTicket, int cbAuthTicket, CSteamID steamID)
{
return ((ISteamUser*)linux_side)->BeginAuthSession((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_SteamUser014_EndAuthSession(void *linux_side, CSteamID steamID)
@@ -93,12 +113,16 @@ void cppISteamUser_SteamUser014_CancelAuthTicket(void *linux_side, HAuthTicket h
EUserHasLicenseForAppResult cppISteamUser_SteamUser014_UserHasLicenseForApp(void *linux_side, CSteamID steamID, AppId_t appID)
{
return ((ISteamUser*)linux_side)->UserHasLicenseForApp((CSteamID)steamID, (AppId_t)appID);
EUserHasLicenseForAppResult _ret;
_ret = ((ISteamUser*)linux_side)->UserHasLicenseForApp((CSteamID)steamID, (AppId_t)appID);
return (_ret);
}
bool cppISteamUser_SteamUser014_BIsBehindNAT(void *linux_side)
{
return ((ISteamUser*)linux_side)->BIsBehindNAT();
bool _ret;
_ret = ((ISteamUser*)linux_side)->BIsBehindNAT();
return (_ret);
}
void cppISteamUser_SteamUser014_AdvertiseGame(void *linux_side, CSteamID steamIDGameServer, uint32 unIPServer, uint16 usPortServer)
@@ -108,12 +132,16 @@ void cppISteamUser_SteamUser014_AdvertiseGame(void *linux_side, CSteamID steamID
SteamAPICall_t cppISteamUser_SteamUser014_RequestEncryptedAppTicket(void *linux_side, void *pDataToInclude, int cbDataToInclude)
{
return ((ISteamUser*)linux_side)->RequestEncryptedAppTicket((void *)pDataToInclude, (int)cbDataToInclude);
SteamAPICall_t _ret;
_ret = ((ISteamUser*)linux_side)->RequestEncryptedAppTicket((void *)pDataToInclude, (int)cbDataToInclude);
return (_ret);
}
bool cppISteamUser_SteamUser014_GetEncryptedAppTicket(void *linux_side, void *pTicket, int cbMaxTicket, uint32 *pcbTicket)
{
return ((ISteamUser*)linux_side)->GetEncryptedAppTicket((void *)pTicket, (int)cbMaxTicket, (uint32 *)pcbTicket);
bool _ret;
_ret = ((ISteamUser*)linux_side)->GetEncryptedAppTicket((void *)pTicket, (int)cbMaxTicket, (uint32 *)pcbTicket);
return (_ret);
}
#ifdef __cplusplus