2
0
mirror of https://github.com/ValveSoftware/Proton synced 2025-08-31 14:45: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,52 +13,72 @@ extern "C" {
#include "cppISteamUtils_SteamUtils005.h"
uint32 cppISteamUtils_SteamUtils005_GetSecondsSinceAppActive(void *linux_side)
{
return ((ISteamUtils*)linux_side)->GetSecondsSinceAppActive();
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetSecondsSinceAppActive();
return (_ret);
}
uint32 cppISteamUtils_SteamUtils005_GetSecondsSinceComputerActive(void *linux_side)
{
return ((ISteamUtils*)linux_side)->GetSecondsSinceComputerActive();
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetSecondsSinceComputerActive();
return (_ret);
}
EUniverse cppISteamUtils_SteamUtils005_GetConnectedUniverse(void *linux_side)
{
return ((ISteamUtils*)linux_side)->GetConnectedUniverse();
EUniverse _ret;
_ret = ((ISteamUtils*)linux_side)->GetConnectedUniverse();
return (_ret);
}
uint32 cppISteamUtils_SteamUtils005_GetServerRealTime(void *linux_side)
{
return ((ISteamUtils*)linux_side)->GetServerRealTime();
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetServerRealTime();
return (_ret);
}
const char * cppISteamUtils_SteamUtils005_GetIPCountry(void *linux_side)
{
return ((ISteamUtils*)linux_side)->GetIPCountry();
const char * _ret;
_ret = ((ISteamUtils*)linux_side)->GetIPCountry();
return (_ret);
}
bool cppISteamUtils_SteamUtils005_GetImageSize(void *linux_side, int iImage, uint32 *pnWidth, uint32 *pnHeight)
{
return ((ISteamUtils*)linux_side)->GetImageSize((int)iImage, (uint32 *)pnWidth, (uint32 *)pnHeight);
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetImageSize((int)iImage, (uint32 *)pnWidth, (uint32 *)pnHeight);
return (_ret);
}
bool cppISteamUtils_SteamUtils005_GetImageRGBA(void *linux_side, int iImage, uint8 *pubDest, int nDestBufferSize)
{
return ((ISteamUtils*)linux_side)->GetImageRGBA((int)iImage, (uint8 *)pubDest, (int)nDestBufferSize);
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetImageRGBA((int)iImage, (uint8 *)pubDest, (int)nDestBufferSize);
return (_ret);
}
bool cppISteamUtils_SteamUtils005_GetCSERIPPort(void *linux_side, uint32 *unIP, uint16 *usPort)
{
return ((ISteamUtils*)linux_side)->GetCSERIPPort((uint32 *)unIP, (uint16 *)usPort);
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetCSERIPPort((uint32 *)unIP, (uint16 *)usPort);
return (_ret);
}
uint8 cppISteamUtils_SteamUtils005_GetCurrentBatteryPower(void *linux_side)
{
return ((ISteamUtils*)linux_side)->GetCurrentBatteryPower();
uint8 _ret;
_ret = ((ISteamUtils*)linux_side)->GetCurrentBatteryPower();
return (_ret);
}
uint32 cppISteamUtils_SteamUtils005_GetAppID(void *linux_side)
{
return ((ISteamUtils*)linux_side)->GetAppID();
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetAppID();
return (_ret);
}
void cppISteamUtils_SteamUtils005_SetOverlayNotificationPosition(void *linux_side, ENotificationPosition eNotificationPosition)
@@ -68,17 +88,23 @@ void cppISteamUtils_SteamUtils005_SetOverlayNotificationPosition(void *linux_sid
bool cppISteamUtils_SteamUtils005_IsAPICallCompleted(void *linux_side, SteamAPICall_t hSteamAPICall, bool *pbFailed)
{
return ((ISteamUtils*)linux_side)->IsAPICallCompleted((SteamAPICall_t)hSteamAPICall, (bool *)pbFailed);
bool _ret;
_ret = ((ISteamUtils*)linux_side)->IsAPICallCompleted((SteamAPICall_t)hSteamAPICall, (bool *)pbFailed);
return (_ret);
}
ESteamAPICallFailure cppISteamUtils_SteamUtils005_GetAPICallFailureReason(void *linux_side, SteamAPICall_t hSteamAPICall)
{
return ((ISteamUtils*)linux_side)->GetAPICallFailureReason((SteamAPICall_t)hSteamAPICall);
ESteamAPICallFailure _ret;
_ret = ((ISteamUtils*)linux_side)->GetAPICallFailureReason((SteamAPICall_t)hSteamAPICall);
return (_ret);
}
bool cppISteamUtils_SteamUtils005_GetAPICallResult(void *linux_side, SteamAPICall_t hSteamAPICall, void *pCallback, int cubCallback, int iCallbackExpected, bool *pbFailed)
{
return ((ISteamUtils*)linux_side)->GetAPICallResult((SteamAPICall_t)hSteamAPICall, (void *)pCallback, (int)cubCallback, (int)iCallbackExpected, (bool *)pbFailed);
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetAPICallResult((SteamAPICall_t)hSteamAPICall, (void *)pCallback, (int)cubCallback, (int)iCallbackExpected, (bool *)pbFailed);
return (_ret);
}
void cppISteamUtils_SteamUtils005_RunFrame(void *linux_side)
@@ -88,7 +114,9 @@ void cppISteamUtils_SteamUtils005_RunFrame(void *linux_side)
uint32 cppISteamUtils_SteamUtils005_GetIPCCallCount(void *linux_side)
{
return ((ISteamUtils*)linux_side)->GetIPCCallCount();
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetIPCCallCount();
return (_ret);
}
void cppISteamUtils_SteamUtils005_SetWarningMessageHook(void *linux_side, SteamAPIWarningMessageHook_t pFunction)
@@ -99,32 +127,44 @@ void cppISteamUtils_SteamUtils005_SetWarningMessageHook(void *linux_side, SteamA
bool cppISteamUtils_SteamUtils005_IsOverlayEnabled(void *linux_side)
{
return ((ISteamUtils*)linux_side)->IsOverlayEnabled();
bool _ret;
_ret = ((ISteamUtils*)linux_side)->IsOverlayEnabled();
return (_ret);
}
bool cppISteamUtils_SteamUtils005_BOverlayNeedsPresent(void *linux_side)
{
return ((ISteamUtils*)linux_side)->BOverlayNeedsPresent();
bool _ret;
_ret = ((ISteamUtils*)linux_side)->BOverlayNeedsPresent();
return (_ret);
}
SteamAPICall_t cppISteamUtils_SteamUtils005_CheckFileSignature(void *linux_side, const char *szFileName)
{
return ((ISteamUtils*)linux_side)->CheckFileSignature((const char *)szFileName);
SteamAPICall_t _ret;
_ret = ((ISteamUtils*)linux_side)->CheckFileSignature((const char *)szFileName);
return (_ret);
}
bool cppISteamUtils_SteamUtils005_ShowGamepadTextInput(void *linux_side, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32 unCharMax)
{
return ((ISteamUtils*)linux_side)->ShowGamepadTextInput((EGamepadTextInputMode)eInputMode, (EGamepadTextInputLineMode)eLineInputMode, (const char *)pchDescription, (uint32)unCharMax);
bool _ret;
_ret = ((ISteamUtils*)linux_side)->ShowGamepadTextInput((EGamepadTextInputMode)eInputMode, (EGamepadTextInputLineMode)eLineInputMode, (const char *)pchDescription, (uint32)unCharMax);
return (_ret);
}
uint32 cppISteamUtils_SteamUtils005_GetEnteredGamepadTextLength(void *linux_side)
{
return ((ISteamUtils*)linux_side)->GetEnteredGamepadTextLength();
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetEnteredGamepadTextLength();
return (_ret);
}
bool cppISteamUtils_SteamUtils005_GetEnteredGamepadTextInput(void *linux_side, char *pchText, uint32 cchText)
{
return ((ISteamUtils*)linux_side)->GetEnteredGamepadTextInput((char *)pchText, (uint32)cchText);
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetEnteredGamepadTextInput((char *)pchText, (uint32)cchText);
return (_ret);
}
#ifdef __cplusplus