mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-30 16:45:36 +03:00
f6871a6b73
CW-Bug-Id: #22729
55 lines
1.7 KiB
C++
55 lines
1.7 KiB
C++
#include "steam_defs.h"
|
|
#pragma push_macro("__cdecl")
|
|
#undef __cdecl
|
|
#define __cdecl
|
|
#include "steamworks_sdk_101/steam_api.h"
|
|
#pragma pop_macro("__cdecl")
|
|
#include "steamclient_private.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#define SDKVER_101
|
|
#include "struct_converters.h"
|
|
#include "cppISteamUser_SteamUser010.h"
|
|
HSteamUser cppISteamUser_SteamUser010_GetHSteamUser(void *linux_side)
|
|
{
|
|
HSteamUser _ret;
|
|
_ret = ((ISteamUser*)linux_side)->GetHSteamUser();
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamUser_SteamUser010_BLoggedOn(void *linux_side)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamUser*)linux_side)->BLoggedOn();
|
|
return (_ret);
|
|
}
|
|
|
|
CSteamID cppISteamUser_SteamUser010_GetSteamID(void *linux_side)
|
|
{
|
|
CSteamID _ret;
|
|
_ret = ((ISteamUser*)linux_side)->GetSteamID();
|
|
return (_ret);
|
|
}
|
|
|
|
int cppISteamUser_SteamUser010_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_SteamUser010_TerminateGameConnection(void *linux_side, uint32 unIPServer, uint16 usPortServer)
|
|
{
|
|
((ISteamUser*)linux_side)->TerminateGameConnection((uint32)unIPServer, (uint16)usPortServer);
|
|
}
|
|
|
|
void cppISteamUser_SteamUser010_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char *pchExtraInfo)
|
|
{
|
|
((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|