2018-01-18 17:24:05 +01:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 16:00:45 +02:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2018-01-18 17:24:05 +01:00
|
|
|
#include "steamworks_sdk_101/steam_api.h"
|
2019-08-16 16:00:45 +02:00
|
|
|
#pragma pop_macro("__cdecl")
|
2018-10-30 20:06:46 +01:00
|
|
|
#include "steamclient_private.h"
|
2018-01-18 17:24:05 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2019-02-26 16:05:29 +01:00
|
|
|
#define SDKVER_101
|
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamUser_SteamUser010.h"
|
2018-01-18 17:24:05 +01:00
|
|
|
HSteamUser cppISteamUser_SteamUser010_GetHSteamUser(void *linux_side)
|
|
|
|
{
|
|
|
|
return ((ISteamUser*)linux_side)->GetHSteamUser();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamUser_SteamUser010_BLoggedOn(void *linux_side)
|
|
|
|
{
|
|
|
|
return ((ISteamUser*)linux_side)->BLoggedOn();
|
|
|
|
}
|
|
|
|
|
|
|
|
CSteamID cppISteamUser_SteamUser010_GetSteamID(void *linux_side)
|
|
|
|
{
|
|
|
|
return ((ISteamUser*)linux_side)->GetSteamID();
|
|
|
|
}
|
|
|
|
|
|
|
|
int cppISteamUser_SteamUser010_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);
|
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
|
|
|
{
|
2018-10-29 17:38:13 +01:00
|
|
|
((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo);
|
2018-01-18 17:24:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|