Proton/lsteamclient/cppISteamUtils_SteamUtils002.cpp

113 lines
3.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_103/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_103
#include "struct_converters.h"
#include "cppISteamUtils_SteamUtils002.h"
2018-01-18 19:24:05 +03:00
uint32 cppISteamUtils_SteamUtils002_GetSecondsSinceAppActive(void *linux_side)
{
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetSecondsSinceAppActive();
return (_ret);
2018-01-18 19:24:05 +03:00
}
uint32 cppISteamUtils_SteamUtils002_GetSecondsSinceComputerActive(void *linux_side)
{
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetSecondsSinceComputerActive();
return (_ret);
2018-01-18 19:24:05 +03:00
}
EUniverse cppISteamUtils_SteamUtils002_GetConnectedUniverse(void *linux_side)
{
EUniverse _ret;
_ret = ((ISteamUtils*)linux_side)->GetConnectedUniverse();
return (_ret);
2018-01-18 19:24:05 +03:00
}
uint32 cppISteamUtils_SteamUtils002_GetServerRealTime(void *linux_side)
{
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetServerRealTime();
return (_ret);
2018-01-18 19:24:05 +03:00
}
const char * cppISteamUtils_SteamUtils002_GetIPCountry(void *linux_side)
{
const char *_ret;
_ret = ((ISteamUtils*)linux_side)->GetIPCountry();
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUtils_SteamUtils002_GetImageSize(void *linux_side, int iImage, uint32 *pnWidth, uint32 *pnHeight)
2018-01-18 19:24:05 +03:00
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetImageSize((int)iImage, (uint32 *)pnWidth, (uint32 *)pnHeight);
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUtils_SteamUtils002_GetImageRGBA(void *linux_side, int iImage, uint8 *pubDest, int nDestBufferSize)
2018-01-18 19:24:05 +03:00
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetImageRGBA((int)iImage, (uint8 *)pubDest, (int)nDestBufferSize);
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUtils_SteamUtils002_GetCSERIPPort(void *linux_side, uint32 *unIP, uint16 *usPort)
2018-01-18 19:24:05 +03:00
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetCSERIPPort((uint32 *)unIP, (uint16 *)usPort);
return (_ret);
2018-01-18 19:24:05 +03:00
}
uint8 cppISteamUtils_SteamUtils002_GetCurrentBatteryPower(void *linux_side)
{
uint8 _ret;
_ret = ((ISteamUtils*)linux_side)->GetCurrentBatteryPower();
return (_ret);
2018-01-18 19:24:05 +03:00
}
uint32 cppISteamUtils_SteamUtils002_GetAppID(void *linux_side)
{
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetAppID();
return (_ret);
2018-01-18 19:24:05 +03:00
}
void cppISteamUtils_SteamUtils002_SetOverlayNotificationPosition(void *linux_side, ENotificationPosition eNotificationPosition)
{
((ISteamUtils*)linux_side)->SetOverlayNotificationPosition((ENotificationPosition)eNotificationPosition);
}
bool cppISteamUtils_SteamUtils002_IsAPICallCompleted(void *linux_side, SteamAPICall_t hSteamAPICall, bool *pbFailed)
2018-01-18 19:24:05 +03:00
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->IsAPICallCompleted((SteamAPICall_t)hSteamAPICall, (bool *)pbFailed);
return (_ret);
2018-01-18 19:24:05 +03:00
}
ESteamAPICallFailure cppISteamUtils_SteamUtils002_GetAPICallFailureReason(void *linux_side, SteamAPICall_t hSteamAPICall)
{
ESteamAPICallFailure _ret;
_ret = ((ISteamUtils*)linux_side)->GetAPICallFailureReason((SteamAPICall_t)hSteamAPICall);
return (_ret);
2018-01-18 19:24:05 +03:00
}
bool cppISteamUtils_SteamUtils002_GetAPICallResult(void *linux_side, SteamAPICall_t hSteamAPICall, void *pCallback, int cubCallback, int iCallbackExpected, bool *pbFailed)
2018-01-18 19:24:05 +03:00
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetAPICallResult((SteamAPICall_t)hSteamAPICall, (void *)pCallback, (int)cubCallback, (int)iCallbackExpected, (bool *)pbFailed);
return (_ret);
2018-01-18 19:24:05 +03:00
}
#ifdef __cplusplus
}
#endif