2019-02-07 20:23:50 +01:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 16:00:45 +02:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2023-05-02 10:43:23 +02:00
|
|
|
#define __cdecl
|
2019-02-07 20:23:50 +01:00
|
|
|
#include "steamworks_sdk_099w/steam_api.h"
|
2019-08-16 16:00:45 +02:00
|
|
|
#pragma pop_macro("__cdecl")
|
2019-02-07 20:23:50 +01:00
|
|
|
#include "steamclient_private.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2019-02-26 16:05:29 +01:00
|
|
|
#define SDKVER_099w
|
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamUser_SteamUser006.h"
|
2019-02-07 20:23:50 +01:00
|
|
|
HSteamUser cppISteamUser_SteamUser006_GetHSteamUser(void *linux_side)
|
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
HSteamUser _ret;
|
|
|
|
_ret = ((ISteamUser*)linux_side)->GetHSteamUser();
|
|
|
|
return (_ret);
|
2019-02-07 20:23:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamUser_SteamUser006_LogOn(void *linux_side, CSteamID steamID)
|
|
|
|
{
|
|
|
|
((ISteamUser*)linux_side)->LogOn((CSteamID)steamID);
|
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamUser_SteamUser006_LogOff(void *linux_side)
|
|
|
|
{
|
|
|
|
((ISteamUser*)linux_side)->LogOff();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamUser_SteamUser006_BLoggedOn(void *linux_side)
|
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamUser*)linux_side)->BLoggedOn();
|
|
|
|
return (_ret);
|
2019-02-07 20:23:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
CSteamID cppISteamUser_SteamUser006_GetSteamID(void *linux_side)
|
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
CSteamID _ret;
|
|
|
|
_ret = ((ISteamUser*)linux_side)->GetSteamID();
|
|
|
|
return (_ret);
|
2019-02-07 20:23:50 +01:00
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
bool cppISteamUser_SteamUser006_SetRegistryString(void *linux_side, EConfigSubTree eRegistrySubTree, const char *pchKey, const char *pchValue)
|
2019-02-07 20:23:50 +01:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamUser*)linux_side)->SetRegistryString((EConfigSubTree)eRegistrySubTree, (const char *)pchKey, (const char *)pchValue);
|
|
|
|
return (_ret);
|
2019-02-07 20:23:50 +01:00
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
bool cppISteamUser_SteamUser006_GetRegistryString(void *linux_side, EConfigSubTree eRegistrySubTree, const char *pchKey, char *pchValue, int cbValue)
|
2019-02-07 20:23:50 +01:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamUser*)linux_side)->GetRegistryString((EConfigSubTree)eRegistrySubTree, (const char *)pchKey, (char *)pchValue, (int)cbValue);
|
|
|
|
return (_ret);
|
2019-02-07 20:23:50 +01:00
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
bool cppISteamUser_SteamUser006_SetRegistryInt(void *linux_side, EConfigSubTree eRegistrySubTree, const char *pchKey, int iValue)
|
2019-02-07 20:23:50 +01:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamUser*)linux_side)->SetRegistryInt((EConfigSubTree)eRegistrySubTree, (const char *)pchKey, (int)iValue);
|
|
|
|
return (_ret);
|
2019-02-07 20:23:50 +01:00
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
bool cppISteamUser_SteamUser006_GetRegistryInt(void *linux_side, EConfigSubTree eRegistrySubTree, const char *pchKey, int *piValue)
|
2019-02-07 20:23:50 +01:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamUser*)linux_side)->GetRegistryInt((EConfigSubTree)eRegistrySubTree, (const char *)pchKey, (int *)piValue);
|
|
|
|
return (_ret);
|
2019-02-07 20:23:50 +01:00
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
int cppISteamUser_SteamUser006_InitiateGameConnection(void *linux_side, void *pBlob, int cbMaxBlob, CSteamID steamID, CGameID gameID, uint32 unIPServer, uint16 usPortServer, bool bSecure)
|
2019-02-07 20:23:50 +01:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
int _ret;
|
|
|
|
_ret = ((ISteamUser*)linux_side)->InitiateGameConnection((void *)pBlob, (int)cbMaxBlob, (CSteamID)steamID, (CGameID)gameID, (uint32)unIPServer, (uint16)usPortServer, (bool)bSecure);
|
|
|
|
return (_ret);
|
2019-02-07 20:23:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamUser_SteamUser006_TerminateGameConnection(void *linux_side, uint32 unIPServer, uint16 usPortServer)
|
|
|
|
{
|
|
|
|
((ISteamUser*)linux_side)->TerminateGameConnection((uint32)unIPServer, (uint16)usPortServer);
|
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
void cppISteamUser_SteamUser006_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char *pchExtraInfo)
|
2019-02-07 20:23:50 +01:00
|
|
|
{
|
|
|
|
((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|