goldberg_emulator/dll/flat.cpp

7070 lines
318 KiB
C++
Raw Normal View History

2019-04-13 16:21:56 +00:00
/* Copyright (C) 2019 Mr Goldberg
This file is part of the Goldberg Emulator
The Goldberg Emulator is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
The Goldberg Emulator is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */
2020-03-25 17:43:23 +00:00
#ifndef STEAMCLIENT_DLL
#define STEAM_API_FUNCTIONS_IMPL
2019-04-13 16:21:56 +00:00
#include "dll.h"
2020-03-25 17:43:23 +00:00
#include "../sdk_includes/steam_api_flat.h"
2019-04-13 16:21:56 +00:00
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamPipe SteamAPI_ISteamClient_CreateSteamPipe( ISteamClient* self )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->CreateSteamPipe();
}
STEAMAPI_API steam_bool SteamAPI_ISteamClient_BReleaseSteamPipe( ISteamClient* self, HSteamPipe hSteamPipe )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->BReleaseSteamPipe(hSteamPipe);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamUser SteamAPI_ISteamClient_ConnectToGlobalUser( ISteamClient* self, HSteamPipe hSteamPipe )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->ConnectToGlobalUser(hSteamPipe);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamUser SteamAPI_ISteamClient_CreateLocalUser( ISteamClient* self, HSteamPipe * phSteamPipe, EAccountType eAccountType )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->CreateLocalUser(phSteamPipe, eAccountType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamClient_ReleaseUser( ISteamClient* self, HSteamPipe hSteamPipe, HSteamUser hUser )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->ReleaseUser(hSteamPipe, hUser);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUser * SteamAPI_ISteamClient_GetISteamUser( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamUser(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamGameServer * SteamAPI_ISteamClient_GetISteamGameServer( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamGameServer(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamClient_SetLocalIPBinding( ISteamClient* self, const SteamIPAddress_t & unIP, uint16 usPort )
2019-04-13 16:21:56 +00:00
{
2019-12-09 17:49:55 +00:00
//Note: this function was updated but currently doesn't do anything so I'm just leaving it like this for now.
//void SteamAPI_ISteamClient_SetLocalIPBinding(intptr_t instancePtr, const struct SteamIPAddress_t & unIP, uint16 usPort)
2019-04-13 16:21:56 +00:00
return get_steam_client()->SetLocalIPBinding(unIP, usPort);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamFriends * SteamAPI_ISteamClient_GetISteamFriends( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamFriends(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUtils * SteamAPI_ISteamClient_GetISteamUtils( ISteamClient* self, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamUtils(hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMatchmaking * SteamAPI_ISteamClient_GetISteamMatchmaking( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamMatchmaking(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMatchmakingServers * SteamAPI_ISteamClient_GetISteamMatchmakingServers( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamMatchmakingServers(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void * SteamAPI_ISteamClient_GetISteamGenericInterface( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamGenericInterface(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUserStats * SteamAPI_ISteamClient_GetISteamUserStats( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamUserStats(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamGameServerStats * SteamAPI_ISteamClient_GetISteamGameServerStats( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamGameServerStats(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamApps * SteamAPI_ISteamClient_GetISteamApps( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamApps(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworking * SteamAPI_ISteamClient_GetISteamNetworking( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamNetworking(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamRemoteStorage * SteamAPI_ISteamClient_GetISteamRemoteStorage( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamRemoteStorage(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamScreenshots * SteamAPI_ISteamClient_GetISteamScreenshots( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamScreenshots(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamGameSearch * SteamAPI_ISteamClient_GetISteamGameSearch( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamGameSearch(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamClient_GetIPCCallCount( ISteamClient* self )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetIPCCallCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamClient_SetWarningMessageHook( ISteamClient* self, SteamAPIWarningMessageHook_t pFunction )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->SetWarningMessageHook(pFunction);
}
STEAMAPI_API steam_bool SteamAPI_ISteamClient_BShutdownIfAllPipesClosed( ISteamClient* self )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->BShutdownIfAllPipesClosed();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamHTTP * SteamAPI_ISteamClient_GetISteamHTTP( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamHTTP(hSteamuser, hSteamPipe, pchVersion);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API void *SteamAPI_ISteamClient_GetISteamUnifiedMessages(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->DEPRECATED_GetISteamUnifiedMessages(hSteamuser,hSteamPipe,pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamController * SteamAPI_ISteamClient_GetISteamController( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamController(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUGC * SteamAPI_ISteamClient_GetISteamUGC( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamUGC(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamAppList * SteamAPI_ISteamClient_GetISteamAppList( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamAppList(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMusic * SteamAPI_ISteamClient_GetISteamMusic( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamMusic(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMusicRemote * SteamAPI_ISteamClient_GetISteamMusicRemote( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamMusicRemote(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamHTMLSurface * SteamAPI_ISteamClient_GetISteamHTMLSurface( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamHTMLSurface(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamInventory * SteamAPI_ISteamClient_GetISteamInventory( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamInventory(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamVideo * SteamAPI_ISteamClient_GetISteamVideo( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamVideo(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamParentalSettings * SteamAPI_ISteamClient_GetISteamParentalSettings( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamParentalSettings(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamInput * SteamAPI_ISteamClient_GetISteamInput( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamInput(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamParties * SteamAPI_ISteamClient_GetISteamParties( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamParties(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamRemotePlay * SteamAPI_ISteamClient_GetISteamRemotePlay( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-07-28 13:02:09 +00:00
{
return get_steam_client()->GetISteamRemotePlay(hSteamUser, hSteamPipe, pchVersion);
}
2020-06-14 20:04:43 +00:00
STEAMAPI_API ISteamUser *SteamAPI_SteamUser_v021()
{
return get_steam_client()->GetISteamUser(flat_hsteamuser(), flat_hsteampipe(), "SteamUser021");
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUser *SteamAPI_SteamUser_v020()
{
return get_steam_client()->GetISteamUser(flat_hsteamuser(), flat_hsteampipe(), "SteamUser020");
}
STEAMAPI_API HSteamUser SteamAPI_ISteamUser_GetHSteamUser( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetHSteamUser();
}
STEAMAPI_API steam_bool SteamAPI_ISteamUser_BLoggedOn( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BLoggedOn();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamUser_GetSteamID( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetSteamID().ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUser_InitiateGameConnection( ISteamUser* self, void * pAuthBlob, int cbMaxAuthBlob, uint64_steamid steamIDGameServer, uint32 unIPServer, uint16 usPortServer, bool bSecure )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->InitiateGameConnection(pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_TerminateGameConnection( ISteamUser* self, uint32 unIPServer, uint16 usPortServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->TerminateGameConnection(unIPServer, usPortServer);
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API int SteamAPI_ISteamUser_InitiateGameConnection_DEPRECATED( ISteamUser* self, void * pAuthBlob, int cbMaxAuthBlob, uint64_steamid steamIDGameServer, uint32 unIPServer, uint16 usPortServer, bool bSecure )
{
return (get_steam_client()->steam_user)->InitiateGameConnection(pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure);
}
STEAMAPI_API void SteamAPI_ISteamUser_TerminateGameConnection_DEPRECATED( ISteamUser* self, uint32 unIPServer, uint16 usPortServer )
{
return (get_steam_client()->steam_user)->TerminateGameConnection(unIPServer, usPortServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_TrackAppUsageEvent( ISteamUser* self, uint64_gameid gameID, int eAppUsageEvent, const char * pchExtraInfo )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return (get_steam_client()->steam_user)->TrackAppUsageEvent(CGameID(gameID), eAppUsageEvent, pchExtraInfo);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUser_GetUserDataFolder( ISteamUser* self, char * pchBuffer, int cubBuffer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetUserDataFolder(pchBuffer, cubBuffer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_StartVoiceRecording( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->StartVoiceRecording();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_StopVoiceRecording( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->StopVoiceRecording();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EVoiceResult SteamAPI_ISteamUser_GetAvailableVoice( ISteamUser* self, uint32 * pcbCompressed, uint32 * pcbUncompressed_Deprecated, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetAvailableVoice(pcbCompressed, pcbUncompressed_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EVoiceResult SteamAPI_ISteamUser_GetVoice( ISteamUser* self, bool bWantCompressed, void * pDestBuffer, uint32 cbDestBufferSize, uint32 * nBytesWritten, bool bWantUncompressed_Deprecated, void * pUncompressedDestBuffer_Deprecated, uint32 cbUncompressedDestBufferSize_Deprecated, uint32 * nUncompressBytesWritten_Deprecated, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetVoice(bWantCompressed, pDestBuffer, cbDestBufferSize, nBytesWritten, bWantUncompressed_Deprecated, pUncompressedDestBuffer_Deprecated, cbUncompressedDestBufferSize_Deprecated, nUncompressBytesWritten_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EVoiceResult SteamAPI_ISteamUser_DecompressVoice( ISteamUser* self, const void * pCompressed, uint32 cbCompressed, void * pDestBuffer, uint32 cbDestBufferSize, uint32 * nBytesWritten, uint32 nDesiredSampleRate )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->DecompressVoice(pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, nBytesWritten, nDesiredSampleRate);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUser_GetVoiceOptimalSampleRate( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetVoiceOptimalSampleRate();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HAuthTicket SteamAPI_ISteamUser_GetAuthSessionTicket( ISteamUser* self, void * pTicket, int cbMaxTicket, uint32 * pcbTicket )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetAuthSessionTicket(pTicket, cbMaxTicket, pcbTicket);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EBeginAuthSessionResult SteamAPI_ISteamUser_BeginAuthSession( ISteamUser* self, const void * pAuthTicket, int cbAuthTicket, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BeginAuthSession(pAuthTicket, cbAuthTicket, steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_EndAuthSession( ISteamUser* self, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->EndAuthSession(steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_CancelAuthTicket( ISteamUser* self, HAuthTicket hAuthTicket )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->CancelAuthTicket(hAuthTicket);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EUserHasLicenseForAppResult SteamAPI_ISteamUser_UserHasLicenseForApp( ISteamUser* self, uint64_steamid steamID, AppId_t appID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->UserHasLicenseForApp(steamID, appID);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUser_BIsBehindNAT( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BIsBehindNAT();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_AdvertiseGame( ISteamUser* self, uint64_steamid steamIDGameServer, uint32 unIPServer, uint16 usPortServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->AdvertiseGame(steamIDGameServer, unIPServer, usPortServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_RequestEncryptedAppTicket( ISteamUser* self, void * pDataToInclude, int cbDataToInclude )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->RequestEncryptedAppTicket(pDataToInclude, cbDataToInclude);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUser_GetEncryptedAppTicket( ISteamUser* self, void * pTicket, int cbMaxTicket, uint32 * pcbTicket )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetEncryptedAppTicket(pTicket, cbMaxTicket, pcbTicket);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUser_GetGameBadgeLevel( ISteamUser* self, int nSeries, bool bFoil )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetGameBadgeLevel(nSeries, bFoil);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUser_GetPlayerSteamLevel( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetPlayerSteamLevel();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_RequestStoreAuthURL( ISteamUser* self, const char * pchRedirectURL )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->RequestStoreAuthURL(pchRedirectURL);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUser_BIsPhoneVerified( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BIsPhoneVerified();
}
STEAMAPI_API steam_bool SteamAPI_ISteamUser_BIsTwoFactorEnabled( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BIsTwoFactorEnabled();
}
STEAMAPI_API steam_bool SteamAPI_ISteamUser_BIsPhoneIdentifying( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BIsPhoneIdentifying();
}
STEAMAPI_API steam_bool SteamAPI_ISteamUser_BIsPhoneRequiringVerification( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BIsPhoneRequiringVerification();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_GetMarketEligibility( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetMarketEligibility();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_GetDurationControl( ISteamUser* self )
2019-07-28 13:02:09 +00:00
{
return (get_steam_client()->steam_user)->GetDurationControl();
}
STEAMAPI_API steam_bool SteamAPI_ISteamUser_BSetDurationControlOnlineState( ISteamUser* self, EDurationControlOnlineState eNewState )
2020-06-14 20:04:43 +00:00
{
return (get_steam_client()->steam_user)->BSetDurationControlOnlineState(eNewState);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamFriends *SteamAPI_SteamFriends_v017()
{
return get_steam_client()->GetISteamFriends(flat_hsteamuser(), flat_hsteampipe(), "SteamFriends017");
}
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetPersonaName( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetPersonaName();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_SetPersonaName( ISteamFriends* self, const char * pchPersonaName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SetPersonaName(pchPersonaName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EPersonaState SteamAPI_ISteamFriends_GetPersonaState( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetPersonaState();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendCount( ISteamFriends* self, int iFriendFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendCount(iFriendFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetFriendByIndex( ISteamFriends* self, int iFriend, int iFriendFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendByIndex(iFriend, iFriendFlags).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EFriendRelationship SteamAPI_ISteamFriends_GetFriendRelationship( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendRelationship(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EPersonaState SteamAPI_ISteamFriends_GetFriendPersonaState( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendPersonaState(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendPersonaName( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendPersonaName(steamIDFriend);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_GetFriendGamePlayed( ISteamFriends* self, uint64_steamid steamIDFriend, FriendGameInfo_t * pFriendGameInfo )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendGamePlayed(steamIDFriend, pFriendGameInfo);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendPersonaNameHistory( ISteamFriends* self, uint64_steamid steamIDFriend, int iPersonaName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendPersonaNameHistory(steamIDFriend, iPersonaName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendSteamLevel( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendSteamLevel(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetPlayerNickname( ISteamFriends* self, uint64_steamid steamIDPlayer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetPlayerNickname(steamIDPlayer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendsGroupCount( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendsGroupCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API FriendsGroupID_t SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex( ISteamFriends* self, int iFG )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendsGroupIDByIndex(iFG);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendsGroupName( ISteamFriends* self, FriendsGroupID_t friendsGroupID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendsGroupName(friendsGroupID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendsGroupMembersCount( ISteamFriends* self, FriendsGroupID_t friendsGroupID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendsGroupMembersCount(friendsGroupID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_GetFriendsGroupMembersList( ISteamFriends* self, FriendsGroupID_t friendsGroupID, CSteamID * pOutSteamIDMembers, int nMembersCount )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendsGroupMembersList(friendsGroupID, pOutSteamIDMembers, nMembersCount);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_HasFriend( ISteamFriends* self, uint64_steamid steamIDFriend, int iFriendFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->HasFriend(steamIDFriend, iFriendFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanCount( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetClanByIndex( ISteamFriends* self, int iClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanByIndex(iClan).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetClanName( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanName(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetClanTag( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanTag(steamIDClan);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_GetClanActivityCounts( ISteamFriends* self, uint64_steamid steamIDClan, int * pnOnline, int * pnInGame, int * pnChatting )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanActivityCounts(steamIDClan, pnOnline, pnInGame, pnChatting);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_DownloadClanActivityCounts( ISteamFriends* self, CSteamID * psteamIDClans, int cClansToRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->DownloadClanActivityCounts(psteamIDClans, cClansToRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendCountFromSource( ISteamFriends* self, uint64_steamid steamIDSource )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendCountFromSource(steamIDSource);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetFriendFromSourceByIndex( ISteamFriends* self, uint64_steamid steamIDSource, int iFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendFromSourceByIndex(steamIDSource, iFriend).ConvertToUint64();
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_IsUserInSource( ISteamFriends* self, uint64_steamid steamIDUser, uint64_steamid steamIDSource )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsUserInSource(steamIDUser, steamIDSource);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_SetInGameVoiceSpeaking( ISteamFriends* self, uint64_steamid steamIDUser, bool bSpeaking )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SetInGameVoiceSpeaking(steamIDUser, bSpeaking);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlay( ISteamFriends* self, const char * pchDialog )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ActivateGameOverlay(pchDialog);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayToUser( ISteamFriends* self, const char * pchDialog, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayToUser(pchDialog, steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage( ISteamFriends* self, const char * pchURL, EActivateGameOverlayToWebPageMode eMode )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayToWebPage(pchURL, eMode);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayToStore( ISteamFriends* self, AppId_t nAppID, EOverlayToStoreFlag eFlag )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayToStore(nAppID, eFlag);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_SetPlayedWith( ISteamFriends* self, uint64_steamid steamIDUserPlayedWith )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SetPlayedWith(steamIDUserPlayedWith);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog( ISteamFriends* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayInviteDialog(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetSmallFriendAvatar( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetSmallFriendAvatar(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetMediumFriendAvatar( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetMediumFriendAvatar(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetLargeFriendAvatar( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetLargeFriendAvatar(steamIDFriend);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_RequestUserInformation( ISteamFriends* self, uint64_steamid steamIDUser, bool bRequireNameOnly )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->RequestUserInformation(steamIDUser, bRequireNameOnly);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_RequestClanOfficerList( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->RequestClanOfficerList(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetClanOwner( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanOwner(steamIDClan).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanOfficerCount( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanOfficerCount(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetClanOfficerByIndex( ISteamFriends* self, uint64_steamid steamIDClan, int iOfficer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanOfficerByIndex(steamIDClan, iOfficer).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamFriends_GetUserRestrictions( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetUserRestrictions();
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_SetRichPresence( ISteamFriends* self, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SetRichPresence(pchKey, pchValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ClearRichPresence( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ClearRichPresence();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendRichPresence( ISteamFriends* self, uint64_steamid steamIDFriend, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendRichPresence(steamIDFriend, pchKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendRichPresenceKeyCount(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex( ISteamFriends* self, uint64_steamid steamIDFriend, int iKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendRichPresenceKeyByIndex(steamIDFriend, iKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_RequestFriendRichPresence( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->RequestFriendRichPresence(steamIDFriend);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_InviteUserToGame( ISteamFriends* self, uint64_steamid steamIDFriend, const char * pchConnectString )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->InviteUserToGame(steamIDFriend, pchConnectString);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetCoplayFriendCount( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetCoplayFriendCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetCoplayFriend( ISteamFriends* self, int iCoplayFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetCoplayFriend(iCoplayFriend).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendCoplayTime( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendCoplayTime(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API AppId_t SteamAPI_ISteamFriends_GetFriendCoplayGame( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendCoplayGame(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_JoinClanChatRoom( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->JoinClanChatRoom(steamIDClan);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_LeaveClanChatRoom( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->LeaveClanChatRoom(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanChatMemberCount( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanChatMemberCount(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetChatMemberByIndex( ISteamFriends* self, uint64_steamid steamIDClan, int iUser )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetChatMemberByIndex(steamIDClan, iUser).ConvertToUint64();
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_SendClanChatMessage( ISteamFriends* self, uint64_steamid steamIDClanChat, const char * pchText )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SendClanChatMessage(steamIDClanChat, pchText);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanChatMessage( ISteamFriends* self, uint64_steamid steamIDClanChat, int iMessage, void * prgchText, int cchTextMax, EChatEntryType * peChatEntryType, CSteamID * psteamidChatter )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanChatMessage(steamIDClanChat, iMessage, prgchText, cchTextMax, peChatEntryType, psteamidChatter);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_IsClanChatAdmin( ISteamFriends* self, uint64_steamid steamIDClanChat, uint64_steamid steamIDUser )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsClanChatAdmin(steamIDClanChat, steamIDUser);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam( ISteamFriends* self, uint64_steamid steamIDClanChat )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsClanChatWindowOpenInSteam(steamIDClanChat);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_OpenClanChatWindowInSteam( ISteamFriends* self, uint64_steamid steamIDClanChat )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->OpenClanChatWindowInSteam(steamIDClanChat);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_CloseClanChatWindowInSteam( ISteamFriends* self, uint64_steamid steamIDClanChat )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->CloseClanChatWindowInSteam(steamIDClanChat);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_SetListenForFriendsMessages( ISteamFriends* self, bool bInterceptEnabled )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SetListenForFriendsMessages(bInterceptEnabled);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_ReplyToFriendMessage( ISteamFriends* self, uint64_steamid steamIDFriend, const char * pchMsgToSend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ReplyToFriendMessage(steamIDFriend, pchMsgToSend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendMessage( ISteamFriends* self, uint64_steamid steamIDFriend, int iMessageID, void * pvData, int cubData, EChatEntryType * peChatEntryType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendMessage(steamIDFriend, iMessageID, pvData, cubData, peChatEntryType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_GetFollowerCount( ISteamFriends* self, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFollowerCount(steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_IsFollowing( ISteamFriends* self, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsFollowing(steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_EnumerateFollowingList( ISteamFriends* self, uint32 unStartIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->EnumerateFollowingList(unStartIndex);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_IsClanPublic( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsClanPublic(steamIDClan);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_IsClanOfficialGameGroup( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsClanOfficialGameGroup(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetNumChatsWithUnreadPriorityMessages();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayRemotePlayTogetherInviteDialog( ISteamFriends* self, uint64_steamid steamIDLobby )
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayRemotePlayTogetherInviteDialog(steamIDLobby);
}
STEAMAPI_API steam_bool SteamAPI_ISteamFriends_RegisterProtocolInOverlayBrowser( ISteamFriends* self, const char * pchProtocol )
2020-06-14 20:04:43 +00:00
{
return (get_steam_client()->steam_friends)->RegisterProtocolInOverlayBrowser(pchProtocol);
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialogConnectString( ISteamFriends* self, const char * pchConnectString )
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayInviteDialogConnectString(pchConnectString);
}
2022-07-12 05:04:56 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_RequestEquippedProfileItems( ISteamFriends* self, uint64_steamid steamID )
{
return (get_steam_client()->steam_friends)->RequestEquippedProfileItems(steamID);
}
STEAMAPI_API bool SteamAPI_ISteamFriends_BHasEquippedProfileItem( ISteamFriends* self, uint64_steamid steamID, ECommunityProfileItemType itemType )
{
return (get_steam_client()->steam_friends)->BHasEquippedProfileItem(steamID, itemType);
}
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetProfileItemPropertyString( ISteamFriends* self, uint64_steamid steamID, ECommunityProfileItemType itemType, ECommunityProfileItemProperty prop )
{
return (get_steam_client()->steam_friends)->GetProfileItemPropertyString(steamID, itemType, prop);
}
STEAMAPI_API uint32 SteamAPI_ISteamFriends_GetProfileItemPropertyUint( ISteamFriends* self, uint64_steamid steamID, ECommunityProfileItemType itemType, ECommunityProfileItemProperty prop )
{
return (get_steam_client()->steam_friends)->GetProfileItemPropertyUint(steamID, itemType, prop);
}
2020-09-14 23:53:56 +00:00
STEAMAPI_API ISteamUtils *SteamAPI_SteamUtils_v010()
{
return get_steam_client()->GetISteamUtils(flat_hsteampipe(), "SteamUtils010");
}
STEAMAPI_API ISteamUtils *SteamAPI_SteamGameServerUtils_v010()
{
return get_steam_client()->GetISteamUtils(flat_gs_hsteampipe(), "SteamUtils010");
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUtils *SteamAPI_SteamUtils_v009()
{
return get_steam_client()->GetISteamUtils(flat_hsteampipe(), "SteamUtils009");
}
STEAMAPI_API ISteamUtils *SteamAPI_SteamGameServerUtils_v009()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamUtils(flat_gs_hsteampipe(), "SteamUtils009");
}
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetSecondsSinceAppActive( ISteamUtils* self )
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetSecondsSinceAppActive();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetSecondsSinceComputerActive( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetSecondsSinceComputerActive();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EUniverse SteamAPI_ISteamUtils_GetConnectedUniverse( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetConnectedUniverse();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetServerRealTime( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetServerRealTime();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamUtils_GetIPCountry( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetIPCountry();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_GetImageSize( ISteamUtils* self, int iImage, uint32 * pnWidth, uint32 * pnHeight )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetImageSize(iImage, pnWidth, pnHeight);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_GetImageRGBA( ISteamUtils* self, int iImage, uint8 * pubDest, int nDestBufferSize )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetImageRGBA(iImage, pubDest, nDestBufferSize);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_GetCSERIPPort( ISteamUtils* self, uint32 * unIP, uint16 * usPort )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetCSERIPPort(unIP, usPort);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint8 SteamAPI_ISteamUtils_GetCurrentBatteryPower( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetCurrentBatteryPower();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetAppID( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetAppID();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_SetOverlayNotificationPosition( ISteamUtils* self, ENotificationPosition eNotificationPosition )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->SetOverlayNotificationPosition(eNotificationPosition);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_IsAPICallCompleted( ISteamUtils* self, SteamAPICall_t hSteamAPICall, bool * pbFailed )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsAPICallCompleted(hSteamAPICall, pbFailed);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamAPICallFailure SteamAPI_ISteamUtils_GetAPICallFailureReason( ISteamUtils* self, SteamAPICall_t hSteamAPICall )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetAPICallFailureReason(hSteamAPICall);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_GetAPICallResult( ISteamUtils* self, SteamAPICall_t hSteamAPICall, void * pCallback, int cubCallback, int iCallbackExpected, bool * pbFailed )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetAPICallResult(hSteamAPICall, pCallback, cubCallback, iCallbackExpected, pbFailed);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetIPCCallCount( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetIPCCallCount();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_SetWarningMessageHook( ISteamUtils* self, SteamAPIWarningMessageHook_t pFunction )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->SetWarningMessageHook(pFunction);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_IsOverlayEnabled( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsOverlayEnabled();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_BOverlayNeedsPresent( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->BOverlayNeedsPresent();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUtils_CheckFileSignature( ISteamUtils* self, const char * szFileName )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->CheckFileSignature(szFileName);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_ShowGamepadTextInput( ISteamUtils* self, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char * pchDescription, uint32 unCharMax, const char * pchExistingText )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->ShowGamepadTextInput(eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetEnteredGamepadTextLength( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetEnteredGamepadTextLength();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_GetEnteredGamepadTextInput( ISteamUtils* self, char * pchText, uint32 cchText )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetEnteredGamepadTextInput(pchText, cchText);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamUtils_GetSteamUILanguage( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetSteamUILanguage();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_IsSteamRunningInVR( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsSteamRunningInVR();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_SetOverlayNotificationInset( ISteamUtils* self, int nHorizontalInset, int nVerticalInset )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->SetOverlayNotificationInset(nHorizontalInset, nVerticalInset);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_IsSteamInBigPictureMode( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsSteamInBigPictureMode();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_StartVRDashboard( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->StartVRDashboard();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsVRHeadsetStreamingEnabled();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled( ISteamUtils* self, bool bEnabled )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->SetVRHeadsetStreamingEnabled(bEnabled);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_IsSteamChinaLauncher( ISteamUtils* self )
2019-07-28 13:02:09 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsSteamChinaLauncher();
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_InitFilterText( ISteamUtils* self, uint32 unFilterOptions )
2019-07-28 13:02:09 +00:00
{
2021-06-18 03:56:51 +00:00
//Note: older function only has less arguments
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2021-06-18 03:56:51 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->InitFilterText(unFilterOptions);
2019-07-28 13:02:09 +00:00
}
2021-06-18 03:56:51 +00:00
STEAMAPI_API int SteamAPI_ISteamUtils_FilterText( ISteamUtils* self, ETextFilteringContext eContext, uint64_steamid sourceSteamID, const char * pchInputMessage, char * pchOutFilteredText, uint32 nByteSizeOutFilteredText )
2019-07-28 13:02:09 +00:00
{
2021-06-18 03:56:51 +00:00
//Note: older function only has less arguments
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2021-06-18 03:56:51 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->FilterText(eContext, sourceSteamID, pchInputMessage, pchOutFilteredText, nByteSizeOutFilteredText);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamIPv6ConnectivityState SteamAPI_ISteamUtils_GetIPv6ConnectivityState( ISteamUtils* self, ESteamIPv6ConnectivityProtocol eProtocol )
2019-12-09 17:49:55 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-12-09 17:49:55 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetIPv6ConnectivityState(eProtocol);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_IsSteamRunningOnSteamDeck( ISteamUtils* self )
2021-12-06 21:51:17 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2021-12-06 21:51:17 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsSteamRunningOnSteamDeck();
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_ShowModalGamepadTextInput( ISteamUtils* self, EGamepadTextInputLineMode eLineInputMode )
2021-12-06 21:51:17 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2021-12-06 21:51:17 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
//flat vs normal api mismatch
return (ptr)->ShowFloatingGamepadTextInput((EFloatingGamepadTextInputMode)eLineInputMode, 0, 0, 0, 0);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_ShowFloatingGamepadTextInput( ISteamUtils* self, EFloatingGamepadTextInputMode eKeyboardMode, int nTextFieldXPosition, int nTextFieldYPosition, int nTextFieldWidth, int nTextFieldHeight )
2022-01-25 20:49:26 +00:00
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
//flat vs normal api mismatch
return (ptr)->ShowFloatingGamepadTextInput( eKeyboardMode, nTextFieldXPosition, nTextFieldYPosition, nTextFieldWidth, nTextFieldHeight);
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_SetGameLauncherMode( ISteamUtils* self, bool bLauncherMode )
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2021-12-06 21:51:17 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->SetGameLauncherMode(bLauncherMode);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUtils_DismissFloatingGamepadTextInput( ISteamUtils* self )
2022-01-25 20:49:26 +00:00
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->DismissFloatingGamepadTextInput();
}
2021-12-06 21:51:17 +00:00
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMatchmaking *SteamAPI_SteamMatchmaking_v009()
{
return get_steam_client()->GetISteamMatchmaking(flat_hsteamuser(), flat_hsteampipe(), "SteamMatchMaking009");
}
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetFavoriteGameCount( ISteamMatchmaking* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetFavoriteGameCount();
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_GetFavoriteGame( ISteamMatchmaking* self, int iGame, AppId_t * pnAppID, uint32 * pnIP, uint16 * pnConnPort, uint16 * pnQueryPort, uint32 * punFlags, uint32 * pRTime32LastPlayedOnServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetFavoriteGame(iGame, pnAppID, pnIP, pnConnPort, pnQueryPort, punFlags, pRTime32LastPlayedOnServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmaking_AddFavoriteGame( ISteamMatchmaking* self, AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags, uint32 rTime32LastPlayedOnServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddFavoriteGame(nAppID, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_RemoveFavoriteGame( ISteamMatchmaking* self, AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->RemoveFavoriteGame(nAppID, nIP, nConnPort, nQueryPort, unFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamMatchmaking_RequestLobbyList( ISteamMatchmaking* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->RequestLobbyList();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter( ISteamMatchmaking* self, const char * pchKeyToMatch, const char * pchValueToMatch, ELobbyComparison eComparisonType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListStringFilter(pchKeyToMatch, pchValueToMatch, eComparisonType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter( ISteamMatchmaking* self, const char * pchKeyToMatch, int nValueToMatch, ELobbyComparison eComparisonType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListNumericalFilter(pchKeyToMatch, nValueToMatch, eComparisonType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter( ISteamMatchmaking* self, const char * pchKeyToMatch, int nValueToBeCloseTo )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListNearValueFilter(pchKeyToMatch, nValueToBeCloseTo);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( ISteamMatchmaking* self, int nSlotsAvailable )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListFilterSlotsAvailable(nSlotsAvailable);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter( ISteamMatchmaking* self, ELobbyDistanceFilter eLobbyDistanceFilter )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListDistanceFilter(eLobbyDistanceFilter);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter( ISteamMatchmaking* self, int cMaxResults )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListResultCountFilter(cMaxResults);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListCompatibleMembersFilter(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamMatchmaking_GetLobbyByIndex( ISteamMatchmaking* self, int iLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyByIndex(iLobby).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamMatchmaking_CreateLobby( ISteamMatchmaking* self, ELobbyType eLobbyType, int cMaxMembers )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->CreateLobby(eLobbyType, cMaxMembers);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamMatchmaking_JoinLobby( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->JoinLobby(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_LeaveLobby( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->LeaveLobby(steamIDLobby);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_InviteUserToLobby( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint64_steamid steamIDInvitee )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->InviteUserToLobby(steamIDLobby, steamIDInvitee);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetNumLobbyMembers( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetNumLobbyMembers(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex( ISteamMatchmaking* self, uint64_steamid steamIDLobby, int iMember )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyMemberByIndex(steamIDLobby, iMember).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamMatchmaking_GetLobbyData( ISteamMatchmaking* self, uint64_steamid steamIDLobby, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyData(steamIDLobby, pchKey);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_SetLobbyData( ISteamMatchmaking* self, uint64_steamid steamIDLobby, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyData(steamIDLobby, pchKey, pchValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetLobbyDataCount( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyDataCount(steamIDLobby);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex( ISteamMatchmaking* self, uint64_steamid steamIDLobby, int iLobbyData, char * pchKey, int cchKeyBufferSize, char * pchValue, int cchValueBufferSize )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyDataByIndex(steamIDLobby, iLobbyData, pchKey, cchKeyBufferSize, pchValue, cchValueBufferSize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_DeleteLobbyData( ISteamMatchmaking* self, uint64_steamid steamIDLobby, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->DeleteLobbyData(steamIDLobby, pchKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamMatchmaking_GetLobbyMemberData( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint64_steamid steamIDUser, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyMemberData(steamIDLobby, steamIDUser, pchKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_SetLobbyMemberData( ISteamMatchmaking* self, uint64_steamid steamIDLobby, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyMemberData(steamIDLobby, pchKey, pchValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_SendLobbyChatMsg( ISteamMatchmaking* self, uint64_steamid steamIDLobby, const void * pvMsgBody, int cubMsgBody )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SendLobbyChatMsg(steamIDLobby, pvMsgBody, cubMsgBody);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetLobbyChatEntry( ISteamMatchmaking* self, uint64_steamid steamIDLobby, int iChatID, CSteamID * pSteamIDUser, void * pvData, int cubData, EChatEntryType * peChatEntryType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyChatEntry(steamIDLobby, iChatID, pSteamIDUser, pvData, cubData, peChatEntryType);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_RequestLobbyData( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->RequestLobbyData(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_SetLobbyGameServer( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint32 unGameServerIP, uint16 unGameServerPort, uint64_steamid steamIDGameServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyGameServer(steamIDLobby, unGameServerIP, unGameServerPort, steamIDGameServer);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_GetLobbyGameServer( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint32 * punGameServerIP, uint16 * punGameServerPort, CSteamID * psteamIDGameServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyGameServer(steamIDLobby, punGameServerIP, punGameServerPort, psteamIDGameServer);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit( ISteamMatchmaking* self, uint64_steamid steamIDLobby, int cMaxMembers )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyMemberLimit(steamIDLobby, cMaxMembers);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyMemberLimit(steamIDLobby);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_SetLobbyType( ISteamMatchmaking* self, uint64_steamid steamIDLobby, ELobbyType eLobbyType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyType(steamIDLobby, eLobbyType);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_SetLobbyJoinable( ISteamMatchmaking* self, uint64_steamid steamIDLobby, bool bLobbyJoinable )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyJoinable(steamIDLobby, bLobbyJoinable);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamMatchmaking_GetLobbyOwner( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyOwner(steamIDLobby).ConvertToUint64();
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_SetLobbyOwner( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint64_steamid steamIDNewOwner )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyOwner(steamIDLobby, steamIDNewOwner);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmaking_SetLinkedLobby( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint64_steamid steamIDLobbyDependent )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLinkedLobby(steamIDLobby, steamIDLobbyDependent);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServerListResponse_ServerResponded( ISteamMatchmakingServerListResponse* self, HServerListRequest hRequest, int iServer )
{
return self->ServerResponded(hRequest, iServer);
}
STEAMAPI_API void SteamAPI_ISteamMatchmakingServerListResponse_ServerFailedToRespond( ISteamMatchmakingServerListResponse* self, HServerListRequest hRequest, int iServer )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ServerFailedToRespond(hRequest, iServer);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServerListResponse_RefreshComplete( ISteamMatchmakingServerListResponse* self, HServerListRequest hRequest, EMatchMakingServerResponse response )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RefreshComplete(hRequest, response);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingPingResponse_ServerResponded( ISteamMatchmakingPingResponse* self, gameserveritem_t & server )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ServerResponded(server);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingPingResponse_ServerFailedToRespond( ISteamMatchmakingPingResponse* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ServerFailedToRespond();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingPlayersResponse_AddPlayerToList( ISteamMatchmakingPlayersResponse* self, const char * pchName, int nScore, float flTimePlayed )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AddPlayerToList(pchName, nScore, flTimePlayed);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingPlayersResponse_PlayersFailedToRespond( ISteamMatchmakingPlayersResponse* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlayersFailedToRespond();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingPlayersResponse_PlayersRefreshComplete( ISteamMatchmakingPlayersResponse* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlayersRefreshComplete();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingRulesResponse_RulesResponded( ISteamMatchmakingRulesResponse* self, const char * pchRule, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RulesResponded(pchRule, pchValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingRulesResponse_RulesFailedToRespond( ISteamMatchmakingRulesResponse* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RulesFailedToRespond();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingRulesResponse_RulesRefreshComplete( ISteamMatchmakingRulesResponse* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RulesRefreshComplete();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMatchmakingServers *SteamAPI_SteamMatchmakingServers_v002()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamMatchmakingServers(flat_hsteamuser(), flat_hsteampipe(), "SteamMatchMakingServers002");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestInternetServerList( ISteamMatchmakingServers* self, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestInternetServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestLANServerList( ISteamMatchmakingServers* self, AppId_t iApp, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestLANServerList(iApp, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList( ISteamMatchmakingServers* self, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestFriendsServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList( ISteamMatchmakingServers* self, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestFavoritesServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList( ISteamMatchmakingServers* self, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestHistoryServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList( ISteamMatchmakingServers* self, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestSpectatorServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_ReleaseRequest( ISteamMatchmakingServers* self, HServerListRequest hServerListRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->ReleaseRequest(hServerListRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API gameserveritem_t * SteamAPI_ISteamMatchmakingServers_GetServerDetails( ISteamMatchmakingServers* self, HServerListRequest hRequest, int iServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->GetServerDetails(hRequest, iServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_CancelQuery( ISteamMatchmakingServers* self, HServerListRequest hRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->CancelQuery(hRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_RefreshQuery( ISteamMatchmakingServers* self, HServerListRequest hRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RefreshQuery(hRequest);
}
STEAMAPI_API steam_bool SteamAPI_ISteamMatchmakingServers_IsRefreshing( ISteamMatchmakingServers* self, HServerListRequest hRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->IsRefreshing(hRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmakingServers_GetServerCount( ISteamMatchmakingServers* self, HServerListRequest hRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->GetServerCount(hRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_RefreshServer( ISteamMatchmakingServers* self, HServerListRequest hRequest, int iServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RefreshServer(hRequest, iServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerQuery SteamAPI_ISteamMatchmakingServers_PingServer( ISteamMatchmakingServers* self, uint32 unIP, uint16 usPort, ISteamMatchmakingPingResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->PingServer(unIP, usPort, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerQuery SteamAPI_ISteamMatchmakingServers_PlayerDetails( ISteamMatchmakingServers* self, uint32 unIP, uint16 usPort, ISteamMatchmakingPlayersResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->PlayerDetails(unIP, usPort, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerQuery SteamAPI_ISteamMatchmakingServers_ServerRules( ISteamMatchmakingServers* self, uint32 unIP, uint16 usPort, ISteamMatchmakingRulesResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->ServerRules(unIP, usPort, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_CancelServerQuery( ISteamMatchmakingServers* self, HServerQuery hServerQuery )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->CancelServerQuery(hServerQuery);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamGameSearch *SteamAPI_SteamGameSearch_v001()
{
return get_steam_client()->GetISteamGameSearch(flat_hsteamuser(), flat_hsteampipe(), "SteamMatchGameSearch001");
}
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_AddGameSearchParams( ISteamGameSearch* self, const char * pchKeyToFind, const char * pchValuesToFind )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AddGameSearchParams(pchKeyToFind, pchValuesToFind);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SearchForGameWithLobby( ISteamGameSearch* self, uint64_steamid steamIDLobby, int nPlayerMin, int nPlayerMax )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SearchForGameWithLobby(steamIDLobby, nPlayerMin, nPlayerMax);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SearchForGameSolo( ISteamGameSearch* self, int nPlayerMin, int nPlayerMax )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SearchForGameSolo(nPlayerMin, nPlayerMax);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_AcceptGame( ISteamGameSearch* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AcceptGame();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_DeclineGame( ISteamGameSearch* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DeclineGame();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_RetrieveConnectionDetails( ISteamGameSearch* self, uint64_steamid steamIDHost, char * pchConnectionDetails, int cubConnectionDetails )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RetrieveConnectionDetails(steamIDHost, pchConnectionDetails, cubConnectionDetails);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_EndGameSearch( ISteamGameSearch* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EndGameSearch();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SetGameHostParams( ISteamGameSearch* self, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetGameHostParams(pchKey, pchValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SetConnectionDetails( ISteamGameSearch* self, const char * pchConnectionDetails, int cubConnectionDetails )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetConnectionDetails(pchConnectionDetails, cubConnectionDetails);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_RequestPlayersForGame( ISteamGameSearch* self, int nPlayerMin, int nPlayerMax, int nMaxTeamSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RequestPlayersForGame(nPlayerMin, nPlayerMax, nMaxTeamSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_HostConfirmGameStart( ISteamGameSearch* self, uint64 ullUniqueGameID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->HostConfirmGameStart(ullUniqueGameID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame( ISteamGameSearch* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CancelRequestPlayersForGame();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SubmitPlayerResult( ISteamGameSearch* self, uint64 ullUniqueGameID, uint64_steamid steamIDPlayer, EPlayerResult_t EPlayerResult )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SubmitPlayerResult(ullUniqueGameID, steamIDPlayer, EPlayerResult);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_EndGame( ISteamGameSearch* self, uint64 ullUniqueGameID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EndGame(ullUniqueGameID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamParties *SteamAPI_SteamParties_v002()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamParties(flat_hsteamuser(), flat_hsteampipe(), "SteamParties002");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamParties_GetNumActiveBeacons( ISteamParties* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetNumActiveBeacons();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API PartyBeaconID_t SteamAPI_ISteamParties_GetBeaconByIndex( ISteamParties* self, uint32 unIndex )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetBeaconByIndex(unIndex);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParties_GetBeaconDetails( ISteamParties* self, PartyBeaconID_t ulBeaconID, CSteamID * pSteamIDBeaconOwner, SteamPartyBeaconLocation_t * pLocation, char * pchMetadata, int cchMetadata )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetBeaconDetails(ulBeaconID, pSteamIDBeaconOwner, pLocation, pchMetadata, cchMetadata);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamParties_JoinParty( ISteamParties* self, PartyBeaconID_t ulBeaconID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->JoinParty(ulBeaconID);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParties_GetNumAvailableBeaconLocations( ISteamParties* self, uint32 * puNumLocations )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetNumAvailableBeaconLocations(puNumLocations);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParties_GetAvailableBeaconLocations( ISteamParties* self, SteamPartyBeaconLocation_t * pLocationList, uint32 uMaxNumLocations )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAvailableBeaconLocations(pLocationList, uMaxNumLocations);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamParties_CreateBeacon( ISteamParties* self, uint32 unOpenSlots, SteamPartyBeaconLocation_t * pBeaconLocation, const char * pchConnectString, const char * pchMetadata )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateBeacon(unOpenSlots, pBeaconLocation, pchConnectString, pchMetadata);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamParties_OnReservationCompleted( ISteamParties* self, PartyBeaconID_t ulBeacon, uint64_steamid steamIDUser )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->OnReservationCompleted(ulBeacon, steamIDUser);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamParties_CancelReservation( ISteamParties* self, PartyBeaconID_t ulBeacon, uint64_steamid steamIDUser )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CancelReservation(ulBeacon, steamIDUser);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamParties_ChangeNumOpenSlots( ISteamParties* self, PartyBeaconID_t ulBeacon, uint32 unOpenSlots )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ChangeNumOpenSlots(ulBeacon, unOpenSlots);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParties_DestroyBeacon( ISteamParties* self, PartyBeaconID_t ulBeacon )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DestroyBeacon(ulBeacon);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParties_GetBeaconLocationData( ISteamParties* self, SteamPartyBeaconLocation_t BeaconLocation, ESteamPartyBeaconLocationData eData, char * pchDataStringOut, int cchDataStringOut )
2020-03-25 17:43:23 +00:00
{
return self->GetBeaconLocationData(BeaconLocation, eData, pchDataStringOut, cchDataStringOut);
}
STEAMAPI_API ISteamRemoteStorage *SteamAPI_SteamRemoteStorage_v014()
{
return get_steam_client()->GetISteamRemoteStorage(flat_hsteamuser(), flat_hsteampipe(), "STEAMREMOTESTORAGE_INTERFACE_VERSION014");
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API ISteamRemoteStorage *SteamAPI_SteamRemoteStorage_v016()
{
return get_steam_client()->GetISteamRemoteStorage(flat_hsteamuser(), flat_hsteampipe(), "STEAMREMOTESTORAGE_INTERFACE_VERSION016");
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_FileWrite( ISteamRemoteStorage* self, const char * pchFile, const void * pvData, int32 cubData )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWrite(pchFile, pvData, cubData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_FileRead( ISteamRemoteStorage* self, const char * pchFile, void * pvData, int32 cubDataToRead )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileRead(pchFile, pvData, cubDataToRead);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_FileWriteAsync( ISteamRemoteStorage* self, const char * pchFile, const void * pvData, uint32 cubData )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWriteAsync(pchFile, pvData, cubData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_FileReadAsync( ISteamRemoteStorage* self, const char * pchFile, uint32 nOffset, uint32 cubToRead )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileReadAsync(pchFile, nOffset, cubToRead);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete( ISteamRemoteStorage* self, SteamAPICall_t hReadCall, void * pvBuffer, uint32 cubToRead )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileReadAsyncComplete(hReadCall, pvBuffer, cubToRead);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_FileForget( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileForget(pchFile);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_FileDelete( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileDelete(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_FileShare( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileShare(pchFile);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_SetSyncPlatforms( ISteamRemoteStorage* self, const char * pchFile, ERemoteStoragePlatform eRemoteStoragePlatform )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->SetSyncPlatforms(pchFile, eRemoteStoragePlatform);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API UGCFileWriteStreamHandle_t SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWriteStreamOpen(pchFile);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk( ISteamRemoteStorage* self, UGCFileWriteStreamHandle_t writeHandle, const void * pvData, int32 cubData )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWriteStreamWriteChunk(writeHandle, pvData, cubData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_FileWriteStreamClose( ISteamRemoteStorage* self, UGCFileWriteStreamHandle_t writeHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWriteStreamClose(writeHandle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel( ISteamRemoteStorage* self, UGCFileWriteStreamHandle_t writeHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWriteStreamCancel(writeHandle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_FileExists( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileExists(pchFile);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_FilePersisted( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FilePersisted(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_GetFileSize( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetFileSize(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int64 SteamAPI_ISteamRemoteStorage_GetFileTimestamp( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetFileTimestamp(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ERemoteStoragePlatform SteamAPI_ISteamRemoteStorage_GetSyncPlatforms( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetSyncPlatforms(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_GetFileCount( ISteamRemoteStorage* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetFileCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamRemoteStorage_GetFileNameAndSize( ISteamRemoteStorage* self, int iFile, int32 * pnFileSizeInBytes )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetFileNameAndSize(iFile, pnFileSizeInBytes);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_GetQuota( ISteamRemoteStorage* self, uint64 * pnTotalBytes, uint64 * puAvailableBytes )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetQuota(pnTotalBytes, puAvailableBytes);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount( ISteamRemoteStorage* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->IsCloudEnabledForAccount();
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp( ISteamRemoteStorage* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->IsCloudEnabledForApp();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp( ISteamRemoteStorage* self, bool bEnabled )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->SetCloudEnabledForApp(bEnabled);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UGCDownload( ISteamRemoteStorage* self, UGCHandle_t hContent, uint32 unPriority )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UGCDownload(hContent, unPriority);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress( ISteamRemoteStorage* self, UGCHandle_t hContent, int32 * pnBytesDownloaded, int32 * pnBytesExpected )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetUGCDownloadProgress(hContent, pnBytesDownloaded, pnBytesExpected);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_GetUGCDetails( ISteamRemoteStorage* self, UGCHandle_t hContent, AppId_t * pnAppID, char ** ppchName, int32 * pnFileSizeInBytes, CSteamID * pSteamIDOwner )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetUGCDetails(hContent, pnAppID, ppchName, pnFileSizeInBytes, pSteamIDOwner);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_UGCRead( ISteamRemoteStorage* self, UGCHandle_t hContent, void * pvData, int32 cubDataToRead, uint32 cOffset, EUGCReadAction eAction )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UGCRead(hContent, pvData, cubDataToRead, cOffset, eAction);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_GetCachedUGCCount( ISteamRemoteStorage* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetCachedUGCCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API UGCHandle_t SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle( ISteamRemoteStorage* self, int32 iCachedContent )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetCachedUGCHandle(iCachedContent);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_PublishWorkshopFile( ISteamRemoteStorage* self, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->PublishWorkshopFile(pchFile, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API PublishedFileUpdateHandle_t SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->CreatePublishedFileUpdateRequest(unPublishedFileId);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileFile(updateHandle, pchFile);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFilePreviewFile(updateHandle, pchPreviewFile);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, const char * pchTitle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileTitle(updateHandle, pchTitle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, const char * pchDescription )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileDescription(updateHandle, pchDescription);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileVisibility(updateHandle, eVisibility);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t * pTags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileTags(updateHandle, pTags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->CommitPublishedFileUpdate(updateHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId, uint32 unMaxSecondsOld )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetPublishedFileDetails(unPublishedFileId, unMaxSecondsOld);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_DeletePublishedFile( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->DeletePublishedFile(unPublishedFileId);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles( ISteamRemoteStorage* self, uint32 unStartIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->EnumerateUserPublishedFiles(unStartIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_SubscribePublishedFile( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->SubscribePublishedFile(unPublishedFileId);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles( ISteamRemoteStorage* self, uint32 unStartIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->EnumerateUserSubscribedFiles(unStartIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UnsubscribePublishedFile(unPublishedFileId);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, const char * pchChangeDescription )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileSetChangeDescription(updateHandle, pchChangeDescription);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetPublishedItemVoteDetails(unPublishedFileId);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId, bool bVoteUp )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdateUserPublishedItemVote(unPublishedFileId, bVoteUp);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetUserPublishedItemVoteDetails(unPublishedFileId);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( ISteamRemoteStorage* self, uint64_steamid steamId, uint32 unStartIndex, SteamParamStringArray_t * pRequiredTags, SteamParamStringArray_t * pExcludedTags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->EnumerateUserSharedWorkshopFiles(steamId, unStartIndex, pRequiredTags, pExcludedTags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_PublishVideo( ISteamRemoteStorage* self, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->PublishVideo(eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->SetUserPublishedFileAction(unPublishedFileId, eAction);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( ISteamRemoteStorage* self, EWorkshopFileAction eAction, uint32 unStartIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->EnumeratePublishedFilesByUserAction(eAction, unStartIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( ISteamRemoteStorage* self, EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t * pTags, SteamParamStringArray_t * pUserTags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->EnumeratePublishedWorkshopFiles(eEnumerationType, unStartIndex, unCount, unDays, pTags, pUserTags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation( ISteamRemoteStorage* self, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UGCDownloadToLocation(hContent, pchLocation, unPriority);
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_GetLocalFileChangeCount( ISteamRemoteStorage* self )
{
return (get_steam_client()->steam_remote_storage)->GetLocalFileChangeCount();
}
STEAMAPI_API const char * SteamAPI_ISteamRemoteStorage_GetLocalFileChange( ISteamRemoteStorage* self, int iFile, ERemoteStorageLocalFileChange * pEChangeType, ERemoteStorageFilePathType * pEFilePathType )
{
return (get_steam_client()->steam_remote_storage)->GetLocalFileChange(iFile, pEChangeType, pEFilePathType);
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_BeginFileWriteBatch( ISteamRemoteStorage* self )
2021-12-06 21:51:17 +00:00
{
return (get_steam_client()->steam_remote_storage)->BeginFileWriteBatch();
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemoteStorage_EndFileWriteBatch( ISteamRemoteStorage* self )
2021-12-06 21:51:17 +00:00
{
return (get_steam_client()->steam_remote_storage)->EndFileWriteBatch();
}
2020-06-14 20:04:43 +00:00
STEAMAPI_API ISteamUserStats *SteamAPI_SteamUserStats_v012()
{
return get_steam_client()->GetISteamUserStats(flat_hsteamuser(), flat_hsteampipe(), "STEAMUSERSTATS_INTERFACE_VERSION012");
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUserStats *SteamAPI_SteamUserStats_v011()
{
return get_steam_client()->GetISteamUserStats(flat_hsteamuser(), flat_hsteampipe(), "STEAMUSERSTATS_INTERFACE_VERSION011");
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_RequestCurrentStats( ISteamUserStats* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->RequestCurrentStats();
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetStat(intptr_t instancePtr, const char * pchName, int32 * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetStat(pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetStat0(intptr_t instancePtr, const char * pchName, float * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetStat(pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetStatInt32( ISteamUserStats* self, const char * pchName, int32 * pData )
2020-03-25 17:43:23 +00:00
{
return (get_steam_client()->steam_user_stats)->GetStat(pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetStatFloat( ISteamUserStats* self, const char * pchName, float * pData )
2020-03-25 17:43:23 +00:00
{
return (get_steam_client()->steam_user_stats)->GetStat(pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_SetStat(intptr_t instancePtr, const char * pchName, int32 nData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->SetStat(pchName, nData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_SetStat0(intptr_t instancePtr, const char * pchName, float fData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->SetStat(pchName, fData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_SetStatInt32( ISteamUserStats* self, const char * pchName, int32 nData )
2020-03-25 17:43:23 +00:00
{
return (get_steam_client()->steam_user_stats)->SetStat(pchName, nData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_SetStatFloat( ISteamUserStats* self, const char * pchName, float fData )
2020-03-25 17:43:23 +00:00
{
return (get_steam_client()->steam_user_stats)->SetStat(pchName, fData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_UpdateAvgRateStat( ISteamUserStats* self, const char * pchName, float flCountThisSession, double dSessionLength )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->UpdateAvgRateStat(pchName, flCountThisSession, dSessionLength);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetAchievement( ISteamUserStats* self, const char * pchName, bool * pbAchieved )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievement(pchName, pbAchieved);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_SetAchievement( ISteamUserStats* self, const char * pchName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->SetAchievement(pchName);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_ClearAchievement( ISteamUserStats* self, const char * pchName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->ClearAchievement(pchName);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime( ISteamUserStats* self, const char * pchName, bool * pbAchieved, uint32 * punUnlockTime )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementAndUnlockTime(pchName, pbAchieved, punUnlockTime);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_StoreStats( ISteamUserStats* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->StoreStats();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUserStats_GetAchievementIcon( ISteamUserStats* self, const char * pchName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementIcon(pchName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute( ISteamUserStats* self, const char * pchName, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementDisplayAttribute(pchName, pchKey);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_IndicateAchievementProgress( ISteamUserStats* self, const char * pchName, uint32 nCurProgress, uint32 nMaxProgress )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->IndicateAchievementProgress(pchName, nCurProgress, nMaxProgress);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUserStats_GetNumAchievements( ISteamUserStats* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetNumAchievements();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamUserStats_GetAchievementName( ISteamUserStats* self, uint32 iAchievement )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementName(iAchievement);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_RequestUserStats( ISteamUserStats* self, uint64_steamid steamIDUser )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->RequestUserStats(steamIDUser);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetUserStat(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, int32 * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetUserStat0(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, float * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetUserStatInt32( ISteamUserStats* self, uint64_steamid steamIDUser, const char * pchName, int32 * pData )
2020-03-25 17:43:23 +00:00
{
return (get_steam_client()->steam_user_stats)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetUserStatFloat( ISteamUserStats* self, uint64_steamid steamIDUser, const char * pchName, float * pData )
2020-03-25 17:43:23 +00:00
{
return (get_steam_client()->steam_user_stats)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetUserAchievement( ISteamUserStats* self, uint64_steamid steamIDUser, const char * pchName, bool * pbAchieved )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetUserAchievement(steamIDUser, pchName, pbAchieved);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime( ISteamUserStats* self, uint64_steamid steamIDUser, const char * pchName, bool * pbAchieved, uint32 * punUnlockTime )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetUserAchievementAndUnlockTime(steamIDUser, pchName, pbAchieved, punUnlockTime);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_ResetAllStats( ISteamUserStats* self, bool bAchievementsToo )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->ResetAllStats(bAchievementsToo);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_FindOrCreateLeaderboard( ISteamUserStats* self, const char * pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->FindOrCreateLeaderboard(pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_FindLeaderboard( ISteamUserStats* self, const char * pchLeaderboardName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->FindLeaderboard(pchLeaderboardName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamUserStats_GetLeaderboardName( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetLeaderboardName(hSteamLeaderboard);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUserStats_GetLeaderboardEntryCount( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetLeaderboardEntryCount(hSteamLeaderboard);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ELeaderboardSortMethod SteamAPI_ISteamUserStats_GetLeaderboardSortMethod( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetLeaderboardSortMethod(hSteamLeaderboard);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ELeaderboardDisplayType SteamAPI_ISteamUserStats_GetLeaderboardDisplayType( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetLeaderboardDisplayType(hSteamLeaderboard);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_DownloadLeaderboardEntries( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->DownloadLeaderboardEntries(hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard, CSteamID * prgUsers, int cUsers )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->DownloadLeaderboardEntriesForUsers(hSteamLeaderboard, prgUsers, cUsers);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry( ISteamUserStats* self, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, LeaderboardEntry_t * pLeaderboardEntry, int32 * pDetails, int cDetailsMax )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetDownloadedLeaderboardEntry(hSteamLeaderboardEntries, index, pLeaderboardEntry, pDetails, cDetailsMax);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_UploadLeaderboardScore( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 * pScoreDetails, int cScoreDetailsCount )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->UploadLeaderboardScore(hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_AttachLeaderboardUGC( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->AttachLeaderboardUGC(hSteamLeaderboard, hUGC);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers( ISteamUserStats* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetNumberOfCurrentPlayers();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages( ISteamUserStats* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->RequestGlobalAchievementPercentages();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo( ISteamUserStats* self, char * pchName, uint32 unNameBufLen, float * pflPercent, bool * pbAchieved )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetMostAchievedAchievementInfo(pchName, unNameBufLen, pflPercent, pbAchieved);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo( ISteamUserStats* self, int iIteratorPrevious, char * pchName, uint32 unNameBufLen, float * pflPercent, bool * pbAchieved )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetNextMostAchievedAchievementInfo(iIteratorPrevious, pchName, unNameBufLen, pflPercent, pbAchieved);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetAchievementAchievedPercent( ISteamUserStats* self, const char * pchName, float * pflPercent )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementAchievedPercent(pchName, pflPercent);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_RequestGlobalStats( ISteamUserStats* self, int nHistoryDays )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->RequestGlobalStats(nHistoryDays);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetGlobalStat(intptr_t instancePtr, const char * pchStatName, int64 * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetGlobalStat(pchStatName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetGlobalStat0(intptr_t instancePtr, const char * pchStatName, double * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetGlobalStat(pchStatName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetGlobalStatInt64( ISteamUserStats* self, const char * pchStatName, int64 * pData )
2020-03-25 17:43:23 +00:00
{
return (get_steam_client()->steam_user_stats)->GetGlobalStat(pchStatName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetGlobalStatDouble( ISteamUserStats* self, const char * pchStatName, double * pData )
2020-03-25 17:43:23 +00:00
{
return (get_steam_client()->steam_user_stats)->GetGlobalStat(pchStatName, pData);
}
STEAMAPI_API int32 SteamAPI_ISteamUserStats_GetGlobalStatHistory(intptr_t instancePtr, const char * pchStatName, int64 * pData, uint32 cubData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetGlobalStatHistory(pchStatName, pData, cubData);
}
STEAMAPI_API int32 SteamAPI_ISteamUserStats_GetGlobalStatHistory0(intptr_t instancePtr, const char * pchStatName, double * pData, uint32 cubData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetGlobalStatHistory(pchStatName, pData, cubData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamUserStats_GetGlobalStatHistoryInt64( ISteamUserStats* self, const char * pchStatName, int64 * pData, uint32 cubData )
{
return (get_steam_client()->steam_user_stats)->GetGlobalStatHistory(pchStatName, pData, cubData);
}
STEAMAPI_API int32 SteamAPI_ISteamUserStats_GetGlobalStatHistoryDouble( ISteamUserStats* self, const char * pchStatName, double * pData, uint32 cubData )
{
return (get_steam_client()->steam_user_stats)->GetGlobalStatHistory(pchStatName, pData, cubData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetAchievementProgressLimitsInt32( ISteamUserStats* self, const char * pchName, int32 * pnMinProgress, int32 * pnMaxProgress )
2020-06-14 20:04:43 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementProgressLimits(pchName, pnMinProgress, pnMaxProgress);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUserStats_GetAchievementProgressLimitsFloat( ISteamUserStats* self, const char * pchName, float * pfMinProgress, float * pfMaxProgress )
2020-06-14 20:04:43 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementProgressLimits(pchName, pfMinProgress, pfMaxProgress);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamApps *SteamAPI_SteamApps_v008()
{
return get_steam_client()->GetISteamApps(flat_hsteamuser(), flat_hsteampipe(), "STEAMAPPS_INTERFACE_VERSION008");
}
STEAMAPI_API ISteamApps *SteamAPI_SteamGameServerApps_v008()
{
return get_steam_client()->GetISteamApps(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "STEAMAPPS_INTERFACE_VERSION008");
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BIsSubscribed( ISteamApps* self )
2020-03-25 17:43:23 +00:00
{
return self->BIsSubscribed();
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BIsLowViolence( ISteamApps* self )
2020-03-25 17:43:23 +00:00
{
return self->BIsLowViolence();
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BIsCybercafe( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsCybercafe();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BIsVACBanned( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsVACBanned();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamApps_GetCurrentGameLanguage( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetCurrentGameLanguage();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamApps_GetAvailableGameLanguages( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAvailableGameLanguages();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BIsSubscribedApp( ISteamApps* self, AppId_t appID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsSubscribedApp(appID);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BIsDlcInstalled( ISteamApps* self, AppId_t appID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsDlcInstalled(appID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime( ISteamApps* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetEarliestPurchaseUnixTime(nAppID);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsSubscribedFromFreeWeekend();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamApps_GetDLCCount( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetDLCCount();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BGetDLCDataByIndex( ISteamApps* self, int iDLC, AppId_t * pAppID, bool * pbAvailable, char * pchName, int cchNameBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BGetDLCDataByIndex(iDLC, pAppID, pbAvailable, pchName, cchNameBufferSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamApps_InstallDLC( ISteamApps* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->InstallDLC(nAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamApps_UninstallDLC( ISteamApps* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UninstallDLC(nAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey( ISteamApps* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RequestAppProofOfPurchaseKey(nAppID);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_GetCurrentBetaName( ISteamApps* self, char * pchName, int cchNameBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetCurrentBetaName(pchName, cchNameBufferSize);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_MarkContentCorrupt( ISteamApps* self, bool bMissingFilesOnly )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->MarkContentCorrupt(bMissingFilesOnly);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamApps_GetInstalledDepots( ISteamApps* self, AppId_t appID, DepotId_t * pvecDepots, uint32 cMaxDepots )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetInstalledDepots(appID, pvecDepots, cMaxDepots);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamApps_GetAppInstallDir( ISteamApps* self, AppId_t appID, char * pchFolder, uint32 cchFolderBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppInstallDir(appID, pchFolder, cchFolderBufferSize);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BIsAppInstalled( ISteamApps* self, AppId_t appID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsAppInstalled(appID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamApps_GetAppOwner( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppOwner().ConvertToUint64();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamApps_GetLaunchQueryParam( ISteamApps* self, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetLaunchQueryParam(pchKey);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_GetDlcDownloadProgress( ISteamApps* self, AppId_t nAppID, uint64 * punBytesDownloaded, uint64 * punBytesTotal )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetDlcDownloadProgress(nAppID, punBytesDownloaded, punBytesTotal);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamApps_GetAppBuildId( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppBuildId();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RequestAllProofOfPurchaseKeys();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamApps_GetFileDetails( ISteamApps* self, const char * pszFileName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetFileDetails(pszFileName);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamApps_GetLaunchCommandLine( ISteamApps* self, char * pszCommandLine, int cubCommandLine )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetLaunchCommandLine(pszCommandLine, cubCommandLine);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsSubscribedFromFamilySharing();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamApps_BIsTimedTrial( ISteamApps* self, uint32 * punSecondsAllowed, uint32 * punSecondsPlayed )
2020-06-14 20:04:43 +00:00
{
return self->BIsTimedTrial(punSecondsAllowed, punSecondsPlayed);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworking *SteamAPI_SteamNetworking_v006()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamNetworking(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworking006");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworking *SteamAPI_SteamGameServerNetworking_v006()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamNetworking(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamNetworking006");
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_SendP2PPacket( ISteamNetworking* self, uint64_steamid steamIDRemote, const void * pubData, uint32 cubData, EP2PSend eP2PSendType, int nChannel )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SendP2PPacket(steamIDRemote, pubData, cubData, eP2PSendType, nChannel);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_IsP2PPacketAvailable( ISteamNetworking* self, uint32 * pcubMsgSize, int nChannel )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->IsP2PPacketAvailable(pcubMsgSize, nChannel);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_ReadP2PPacket( ISteamNetworking* self, void * pubDest, uint32 cubDest, uint32 * pcubMsgSize, CSteamID * psteamIDRemote, int nChannel )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ReadP2PPacket(pubDest, cubDest, pcubMsgSize, psteamIDRemote, nChannel);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser( ISteamNetworking* self, uint64_steamid steamIDRemote )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AcceptP2PSessionWithUser(steamIDRemote);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_CloseP2PSessionWithUser( ISteamNetworking* self, uint64_steamid steamIDRemote )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CloseP2PSessionWithUser(steamIDRemote);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_CloseP2PChannelWithUser( ISteamNetworking* self, uint64_steamid steamIDRemote, int nChannel )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CloseP2PChannelWithUser(steamIDRemote, nChannel);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_GetP2PSessionState( ISteamNetworking* self, uint64_steamid steamIDRemote, P2PSessionState_t * pConnectionState )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetP2PSessionState(steamIDRemote, pConnectionState);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_AllowP2PPacketRelay( ISteamNetworking* self, bool bAllow )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AllowP2PPacketRelay(bAllow);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SNetListenSocket_t SteamAPI_ISteamNetworking_CreateListenSocket( ISteamNetworking* self, int nVirtualP2PPort, SteamIPAddress_t nIP, uint16 nPort, bool bAllowUseOfPacketRelay )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateListenSocket(nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SNetSocket_t SteamAPI_ISteamNetworking_CreateP2PConnectionSocket( ISteamNetworking* self, uint64_steamid steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateP2PConnectionSocket(steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SNetSocket_t SteamAPI_ISteamNetworking_CreateConnectionSocket( ISteamNetworking* self, SteamIPAddress_t nIP, uint16 nPort, int nTimeoutSec )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateConnectionSocket(nIP, nPort, nTimeoutSec);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_DestroySocket( ISteamNetworking* self, SNetSocket_t hSocket, bool bNotifyRemoteEnd )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DestroySocket(hSocket, bNotifyRemoteEnd);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_DestroyListenSocket( ISteamNetworking* self, SNetListenSocket_t hSocket, bool bNotifyRemoteEnd )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DestroyListenSocket(hSocket, bNotifyRemoteEnd);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_SendDataOnSocket( ISteamNetworking* self, SNetSocket_t hSocket, void * pubData, uint32 cubData, bool bReliable )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SendDataOnSocket(hSocket, pubData, cubData, bReliable);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_IsDataAvailableOnSocket( ISteamNetworking* self, SNetSocket_t hSocket, uint32 * pcubMsgSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->IsDataAvailableOnSocket(hSocket, pcubMsgSize);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_RetrieveDataFromSocket( ISteamNetworking* self, SNetSocket_t hSocket, void * pubDest, uint32 cubDest, uint32 * pcubMsgSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RetrieveDataFromSocket(hSocket, pubDest, cubDest, pcubMsgSize);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_IsDataAvailable( ISteamNetworking* self, SNetListenSocket_t hListenSocket, uint32 * pcubMsgSize, SNetSocket_t * phSocket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->IsDataAvailable(hListenSocket, pcubMsgSize, phSocket);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_RetrieveData( ISteamNetworking* self, SNetListenSocket_t hListenSocket, void * pubDest, uint32 cubDest, uint32 * pcubMsgSize, SNetSocket_t * phSocket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RetrieveData(hListenSocket, pubDest, cubDest, pcubMsgSize, phSocket);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_GetSocketInfo( ISteamNetworking* self, SNetSocket_t hSocket, CSteamID * pSteamIDRemote, int * peSocketStatus, SteamIPAddress_t * punIPRemote, uint16 * punPortRemote )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSocketInfo(hSocket, pSteamIDRemote, peSocketStatus, punIPRemote, punPortRemote);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworking_GetListenSocketInfo( ISteamNetworking* self, SNetListenSocket_t hListenSocket, SteamIPAddress_t * pnIP, uint16 * pnPort )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetListenSocketInfo(hListenSocket, pnIP, pnPort);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESNetSocketConnectionType SteamAPI_ISteamNetworking_GetSocketConnectionType( ISteamNetworking* self, SNetSocket_t hSocket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSocketConnectionType(hSocket);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworking_GetMaxPacketSize( ISteamNetworking* self, SNetSocket_t hSocket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetMaxPacketSize(hSocket);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamScreenshots *SteamAPI_SteamScreenshots_v003()
{
return get_steam_client()->GetISteamScreenshots(flat_hsteamuser(), flat_hsteampipe(), "STEAMSCREENSHOTS_INTERFACE_VERSION003");
}
2019-12-09 17:49:55 +00:00
2020-03-25 17:43:23 +00:00
STEAMAPI_API ScreenshotHandle SteamAPI_ISteamScreenshots_WriteScreenshot( ISteamScreenshots* self, void * pubRGB, uint32 cubRGB, int nWidth, int nHeight )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->WriteScreenshot(pubRGB, cubRGB, nWidth, nHeight);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ScreenshotHandle SteamAPI_ISteamScreenshots_AddScreenshotToLibrary( ISteamScreenshots* self, const char * pchFilename, const char * pchThumbnailFilename, int nWidth, int nHeight )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->AddScreenshotToLibrary(pchFilename, pchThumbnailFilename, nWidth, nHeight);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamScreenshots_TriggerScreenshot( ISteamScreenshots* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->TriggerScreenshot();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamScreenshots_HookScreenshots( ISteamScreenshots* self, bool bHook )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->HookScreenshots(bHook);
}
STEAMAPI_API steam_bool SteamAPI_ISteamScreenshots_SetLocation( ISteamScreenshots* self, ScreenshotHandle hScreenshot, const char * pchLocation )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->SetLocation(hScreenshot, pchLocation);
}
STEAMAPI_API steam_bool SteamAPI_ISteamScreenshots_TagUser( ISteamScreenshots* self, ScreenshotHandle hScreenshot, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->TagUser(hScreenshot, steamID);
}
STEAMAPI_API steam_bool SteamAPI_ISteamScreenshots_TagPublishedFile( ISteamScreenshots* self, ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->TagPublishedFile(hScreenshot, unPublishedFileID);
}
STEAMAPI_API steam_bool SteamAPI_ISteamScreenshots_IsScreenshotsHooked( ISteamScreenshots* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->IsScreenshotsHooked();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ScreenshotHandle SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary( ISteamScreenshots* self, EVRScreenshotType eType, const char * pchFilename, const char * pchVRFilename )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->AddVRScreenshotToLibrary(eType, pchFilename, pchVRFilename);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMusic *SteamAPI_SteamMusic_v001()
{
return get_steam_client()->GetISteamMusic(flat_hsteamuser(), flat_hsteampipe(), "STEAMMUSIC_INTERFACE_VERSION001");
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusic_BIsEnabled( ISteamMusic* self )
2020-03-25 17:43:23 +00:00
{
return self->BIsEnabled();
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusic_BIsPlaying( ISteamMusic* self )
2020-03-25 17:43:23 +00:00
{
return self->BIsPlaying();
}
STEAMAPI_API AudioPlayback_Status SteamAPI_ISteamMusic_GetPlaybackStatus( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetPlaybackStatus();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMusic_Play( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->Play();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMusic_Pause( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->Pause();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMusic_PlayPrevious( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlayPrevious();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMusic_PlayNext( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlayNext();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMusic_SetVolume( ISteamMusic* self, float flVolume )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetVolume(flVolume);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API float SteamAPI_ISteamMusic_GetVolume( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetVolume();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMusicRemote *SteamAPI_SteamMusicRemote_v001()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamMusicRemote(flat_hsteamuser(), flat_hsteampipe(), "STEAMMUSICREMOTE_INTERFACE_VERSION001");
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote( ISteamMusicRemote* self, const char * pchName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RegisterSteamMusicRemote(pchName);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DeregisterSteamMusicRemote();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsCurrentMusicRemote();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_BActivationSuccess( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BActivationSuccess(bValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_SetDisplayName( ISteamMusicRemote* self, const char * pchDisplayName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetDisplayName(pchDisplayName);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64( ISteamMusicRemote* self, void * pvBuffer, uint32 cbBufferLength )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetPNGIcon_64x64(pvBuffer, cbBufferLength);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_EnablePlayPrevious( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnablePlayPrevious(bValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_EnablePlayNext( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnablePlayNext(bValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_EnableShuffled( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnableShuffled(bValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_EnableLooped( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnableLooped(bValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_EnableQueue( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnableQueue(bValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_EnablePlaylists( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnablePlaylists(bValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus( ISteamMusicRemote* self, AudioPlayback_Status nStatus )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdatePlaybackStatus(nStatus);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_UpdateShuffled( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateShuffled(bValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_UpdateLooped( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateLooped(bValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_UpdateVolume( ISteamMusicRemote* self, float flValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateVolume(flValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_CurrentEntryWillChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CurrentEntryWillChange();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable( ISteamMusicRemote* self, bool bAvailable )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CurrentEntryIsAvailable(bAvailable);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText( ISteamMusicRemote* self, const char * pchText )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateCurrentEntryText(pchText);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( ISteamMusicRemote* self, int nValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateCurrentEntryElapsedSeconds(nValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt( ISteamMusicRemote* self, void * pvBuffer, uint32 cbBufferLength )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateCurrentEntryCoverArt(pvBuffer, cbBufferLength);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_CurrentEntryDidChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CurrentEntryDidChange();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_QueueWillChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->QueueWillChange();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_ResetQueueEntries( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ResetQueueEntries();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_SetQueueEntry( ISteamMusicRemote* self, int nID, int nPosition, const char * pchEntryText )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetQueueEntry(nID, nPosition, pchEntryText);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry( ISteamMusicRemote* self, int nID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetCurrentQueueEntry(nID);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_QueueDidChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->QueueDidChange();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_PlaylistWillChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlaylistWillChange();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_ResetPlaylistEntries( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ResetPlaylistEntries();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_SetPlaylistEntry( ISteamMusicRemote* self, int nID, int nPosition, const char * pchEntryText )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetPlaylistEntry(nID, nPosition, pchEntryText);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry( ISteamMusicRemote* self, int nID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetCurrentPlaylistEntry(nID);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamMusicRemote_PlaylistDidChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlaylistDidChange();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamHTTP *SteamAPI_SteamHTTP_v003()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamHTTP(flat_hsteamuser(), flat_hsteampipe(), "STEAMHTTP_INTERFACE_VERSION003");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamHTTP *SteamAPI_SteamGameServerHTTP_v003()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamHTTP(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "STEAMHTTP_INTERFACE_VERSION003");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HTTPRequestHandle SteamAPI_ISteamHTTP_CreateHTTPRequest( ISteamHTTP* self, EHTTPMethod eHTTPRequestMethod, const char * pchAbsoluteURL )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateHTTPRequest(eHTTPRequestMethod, pchAbsoluteURL);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SetHTTPRequestContextValue( ISteamHTTP* self, HTTPRequestHandle hRequest, uint64 ulContextValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestContextValue(hRequest, ulContextValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( ISteamHTTP* self, HTTPRequestHandle hRequest, uint32 unTimeoutSeconds )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestNetworkActivityTimeout(hRequest, unTimeoutSeconds);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchHeaderName, const char * pchHeaderValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestHeaderValue(hRequest, pchHeaderName, pchHeaderValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchParamName, const char * pchParamValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestGetOrPostParameter(hRequest, pchParamName, pchParamValue);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SendHTTPRequest( ISteamHTTP* self, HTTPRequestHandle hRequest, SteamAPICall_t * pCallHandle )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SendHTTPRequest(hRequest, pCallHandle);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse( ISteamHTTP* self, HTTPRequestHandle hRequest, SteamAPICall_t * pCallHandle )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SendHTTPRequestAndStreamResponse(hRequest, pCallHandle);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_DeferHTTPRequest( ISteamHTTP* self, HTTPRequestHandle hRequest )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DeferHTTPRequest(hRequest);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_PrioritizeHTTPRequest( ISteamHTTP* self, HTTPRequestHandle hRequest )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PrioritizeHTTPRequest(hRequest);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchHeaderName, uint32 * unResponseHeaderSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPResponseHeaderSize(hRequest, pchHeaderName, unResponseHeaderSize);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchHeaderName, uint8 * pHeaderValueBuffer, uint32 unBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPResponseHeaderValue(hRequest, pchHeaderName, pHeaderValueBuffer, unBufferSize);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_GetHTTPResponseBodySize( ISteamHTTP* self, HTTPRequestHandle hRequest, uint32 * unBodySize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPResponseBodySize(hRequest, unBodySize);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_GetHTTPResponseBodyData( ISteamHTTP* self, HTTPRequestHandle hRequest, uint8 * pBodyDataBuffer, uint32 unBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPResponseBodyData(hRequest, pBodyDataBuffer, unBufferSize);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData( ISteamHTTP* self, HTTPRequestHandle hRequest, uint32 cOffset, uint8 * pBodyDataBuffer, uint32 unBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPStreamingResponseBodyData(hRequest, cOffset, pBodyDataBuffer, unBufferSize);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_ReleaseHTTPRequest( ISteamHTTP* self, HTTPRequestHandle hRequest )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ReleaseHTTPRequest(hRequest);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct( ISteamHTTP* self, HTTPRequestHandle hRequest, float * pflPercentOut )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPDownloadProgressPct(hRequest, pflPercentOut);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchContentType, uint8 * pubBody, uint32 unBodyLen )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestRawPostBody(hRequest, pchContentType, pubBody, unBodyLen);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HTTPCookieContainerHandle SteamAPI_ISteamHTTP_CreateCookieContainer( ISteamHTTP* self, bool bAllowResponsesToModify )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateCookieContainer(bAllowResponsesToModify);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_ReleaseCookieContainer( ISteamHTTP* self, HTTPCookieContainerHandle hCookieContainer )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ReleaseCookieContainer(hCookieContainer);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SetCookie( ISteamHTTP* self, HTTPCookieContainerHandle hCookieContainer, const char * pchHost, const char * pchUrl, const char * pchCookie )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetCookie(hCookieContainer, pchHost, pchUrl, pchCookie);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer( ISteamHTTP* self, HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestCookieContainer(hRequest, hCookieContainer);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchUserAgentInfo )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestUserAgentInfo(hRequest, pchUserAgentInfo);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( ISteamHTTP* self, HTTPRequestHandle hRequest, bool bRequireVerifiedCertificate )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestRequiresVerifiedCertificate(hRequest, bRequireVerifiedCertificate);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( ISteamHTTP* self, HTTPRequestHandle hRequest, uint32 unMilliseconds )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestAbsoluteTimeoutMS(hRequest, unMilliseconds);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut( ISteamHTTP* self, HTTPRequestHandle hRequest, bool * pbWasTimedOut )
2020-03-25 17:43:23 +00:00
{
return self->GetHTTPRequestWasTimedOut(hRequest, pbWasTimedOut);
}
STEAMAPI_API ISteamInput *SteamAPI_SteamInput_v001()
{
return get_steam_client()->GetISteamInput(flat_hsteamuser(), flat_hsteampipe(), "SteamInput001");
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API ISteamInput *SteamAPI_SteamInput_v002()
{
return get_steam_client()->GetISteamInput(flat_hsteamuser(), flat_hsteampipe(), "SteamInput002");
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API ISteamInput *SteamAPI_SteamInput_v005()
2019-04-13 16:21:56 +00:00
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->GetISteamInput(flat_hsteamuser(), flat_hsteampipe(), "SteamInput005");
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API ISteamInput *SteamAPI_SteamInput_v006()
{
return get_steam_client()->GetISteamInput(flat_hsteamuser(), flat_hsteampipe(), "SteamInput006");
}
STEAMAPI_API steam_bool SteamAPI_ISteamInput_Init( ISteamInput* self, bool bExplicitlyCallRunFrame )
2021-12-06 21:51:17 +00:00
{
//TODO: do something with bExplicitlyCallRunFrame
return (get_steam_client()->steam_controller)->Init();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamInput_Shutdown( ISteamInput* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->Shutdown();
}
STEAMAPI_API steam_bool SteamAPI_ISteamInput_SetInputActionManifestFilePath( ISteamInput* self, const char * pchInputActionManifestAbsolutePath )
2019-04-13 16:21:56 +00:00
{
2021-12-06 21:51:17 +00:00
return (get_steam_client()->steam_controller)->SetInputActionManifestFilePath(pchInputActionManifestAbsolutePath);
}
STEAMAPI_API void SteamAPI_ISteamInput_RunFrame( ISteamInput* self, bool bReservedValue )
{
return (get_steam_client()->steam_controller)->RunFrame(bReservedValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInput_BWaitForData( ISteamInput* self, bool bWaitForever, uint32 unTimeout )
2021-12-06 21:51:17 +00:00
{
return (get_steam_client()->steam_controller)->BWaitForData(bWaitForever, unTimeout);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInput_BNewDataAvailable( ISteamInput* self )
2021-12-06 21:51:17 +00:00
{
return (get_steam_client()->steam_controller)->BNewDataAvailable();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamInput_GetConnectedControllers( ISteamInput* self, InputHandle_t * handlesOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetConnectedControllers(handlesOut);
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_EnableDeviceCallbacks( ISteamInput* self )
{
return (get_steam_client()->steam_controller)->EnableDeviceCallbacks();
}
STEAMAPI_API void SteamAPI_ISteamInput_EnableActionEventCallbacks( ISteamInput* self, SteamInputActionEventCallbackPointer pCallback )
{
return (get_steam_client()->steam_controller)->EnableActionEventCallbacks(pCallback);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputActionSetHandle_t SteamAPI_ISteamInput_GetActionSetHandle( ISteamInput* self, const char * pszActionSetName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActionSetHandle(pszActionSetName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_ActivateActionSet( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ActivateActionSet(inputHandle, actionSetHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputActionSetHandle_t SteamAPI_ISteamInput_GetCurrentActionSet( ISteamInput* self, InputHandle_t inputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetCurrentActionSet(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_ActivateActionSetLayer( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetLayerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ActivateActionSetLayer(inputHandle, actionSetLayerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_DeactivateActionSetLayer( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetLayerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->DeactivateActionSetLayer(inputHandle, actionSetLayerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_DeactivateAllActionSetLayers( ISteamInput* self, InputHandle_t inputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->DeactivateAllActionSetLayers(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamInput_GetActiveActionSetLayers( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t * handlesOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActiveActionSetLayers(inputHandle, handlesOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputDigitalActionHandle_t SteamAPI_ISteamInput_GetDigitalActionHandle( ISteamInput* self, const char * pszActionName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionHandle(pszActionName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputDigitalActionData_t SteamAPI_ISteamInput_GetDigitalActionData( ISteamInput* self, InputHandle_t inputHandle, InputDigitalActionHandle_t digitalActionHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionData(inputHandle, digitalActionHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamInput_GetDigitalActionOrigins( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputDigitalActionHandle_t digitalActionHandle, EInputActionOrigin * originsOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionOrigins(inputHandle, actionSetHandle, digitalActionHandle, originsOut);
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetStringForDigitalActionName( ISteamInput* self, InputDigitalActionHandle_t eActionHandle )
{
return (get_steam_client()->steam_controller)->GetStringForDigitalActionName(eActionHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputAnalogActionHandle_t SteamAPI_ISteamInput_GetAnalogActionHandle( ISteamInput* self, const char * pszActionName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionHandle(pszActionName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputAnalogActionData_t SteamAPI_ISteamInput_GetAnalogActionData( ISteamInput* self, InputHandle_t inputHandle, InputAnalogActionHandle_t analogActionHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionData(inputHandle, analogActionHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamInput_GetAnalogActionOrigins( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputAnalogActionHandle_t analogActionHandle, EInputActionOrigin * originsOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionOrigins(inputHandle, actionSetHandle, analogActionHandle, originsOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetGlyphForActionOrigin( ISteamInput* self, EInputActionOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGlyphForActionOrigin(eOrigin);
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetGlyphPNGForActionOrigin( ISteamInput* self, EInputActionOrigin eOrigin, ESteamInputGlyphSize eSize, uint32 unFlags )
{
return (get_steam_client()->steam_controller)->GetGlyphPNGForActionOrigin(eOrigin, eSize, unFlags);
}
STEAMAPI_API const char * SteamAPI_ISteamInput_GetGlyphSVGForActionOrigin( ISteamInput* self, EInputActionOrigin eOrigin, uint32 unFlags )
{
return (get_steam_client()->steam_controller)->GetGlyphSVGForActionOrigin(eOrigin, unFlags);
}
STEAMAPI_API const char * SteamAPI_ISteamInput_GetGlyphForActionOrigin_Legacy( ISteamInput* self, EInputActionOrigin eOrigin )
{
return (get_steam_client()->steam_controller)->GetGlyphForActionOrigin_Legacy(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetStringForActionOrigin( ISteamInput* self, EInputActionOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetStringForActionOrigin(eOrigin);
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetStringForAnalogActionName( ISteamInput* self, InputAnalogActionHandle_t eActionHandle )
{
return (get_steam_client()->steam_controller)->GetStringForAnalogActionName(eActionHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_StopAnalogActionMomentum( ISteamInput* self, InputHandle_t inputHandle, InputAnalogActionHandle_t eAction )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->StopAnalogActionMomentum(inputHandle, eAction);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputMotionData_t SteamAPI_ISteamInput_GetMotionData( ISteamInput* self, InputHandle_t inputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetMotionData(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_TriggerVibration( ISteamInput* self, InputHandle_t inputHandle, unsigned short usLeftSpeed, unsigned short usRightSpeed )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerVibration(inputHandle, usLeftSpeed, usRightSpeed);
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_TriggerVibrationExtended( ISteamInput* self, InputHandle_t inputHandle, unsigned short usLeftSpeed, unsigned short usRightSpeed, unsigned short usLeftTriggerSpeed, unsigned short usRightTriggerSpeed )
{
return (get_steam_client()->steam_controller)->TriggerVibrationExtended(inputHandle, usLeftSpeed, usRightSpeed, usLeftTriggerSpeed, usRightTriggerSpeed);
}
STEAMAPI_API void SteamAPI_ISteamInput_TriggerSimpleHapticEvent( ISteamInput* self, InputHandle_t inputHandle, EControllerHapticLocation eHapticLocation, uint8 nIntensity, char nGainDB, uint8 nOtherIntensity, char nOtherGainDB )
{
return (get_steam_client()->steam_controller)->TriggerSimpleHapticEvent(inputHandle, eHapticLocation, nIntensity, nGainDB, nOtherIntensity, nOtherGainDB);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_SetLEDColor( ISteamInput* self, InputHandle_t inputHandle, uint8 nColorR, uint8 nColorG, uint8 nColorB, unsigned int nFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->SetLEDColor(inputHandle, nColorR, nColorG, nColorB, nFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_TriggerHapticPulse( ISteamInput* self, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerHapticPulse(inputHandle, eTargetPad, usDurationMicroSec);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_TriggerRepeatedHapticPulse( ISteamInput* self, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec, unsigned short usOffMicroSec, unsigned short unRepeat, unsigned int nFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerRepeatedHapticPulse(inputHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_Legacy_TriggerHapticPulse( ISteamInput* self, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec )
{
return (get_steam_client()->steam_controller)->Legacy_TriggerHapticPulse(inputHandle, eTargetPad, usDurationMicroSec);
}
STEAMAPI_API void SteamAPI_ISteamInput_Legacy_TriggerRepeatedHapticPulse( ISteamInput* self, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec, unsigned short usOffMicroSec, unsigned short unRepeat, unsigned int nFlags )
{
return (get_steam_client()->steam_controller)->Legacy_TriggerRepeatedHapticPulse(inputHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInput_ShowBindingPanel( ISteamInput* self, InputHandle_t inputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ShowBindingPanel(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamInputType SteamAPI_ISteamInput_GetInputTypeForHandle( ISteamInput* self, InputHandle_t inputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetInputTypeForHandle(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputHandle_t SteamAPI_ISteamInput_GetControllerForGamepadIndex( ISteamInput* self, int nIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetControllerForGamepadIndex(nIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamInput_GetGamepadIndexForController( ISteamInput* self, InputHandle_t ulinputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGamepadIndexForController(ulinputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetStringForXboxOrigin( ISteamInput* self, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetStringForXboxOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetGlyphForXboxOrigin( ISteamInput* self, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGlyphForXboxOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EInputActionOrigin SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin( ISteamInput* self, InputHandle_t inputHandle, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActionOriginFromXboxOrigin(inputHandle, eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EInputActionOrigin SteamAPI_ISteamInput_TranslateActionOrigin( ISteamInput* self, ESteamInputType eDestinationInputType, EInputActionOrigin eSourceOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TranslateActionOrigin(eDestinationInputType, eSourceOrigin);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInput_GetDeviceBindingRevision( ISteamInput* self, InputHandle_t inputHandle, int * pMajor, int * pMinor )
2019-07-28 13:02:09 +00:00
{
return (get_steam_client()->steam_controller)->GetDeviceBindingRevision(inputHandle, pMajor, pMinor);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamInput_GetRemotePlaySessionID( ISteamInput* self, InputHandle_t inputHandle )
2019-07-28 13:02:09 +00:00
{
return (get_steam_client()->steam_controller)->GetRemotePlaySessionID(inputHandle);
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API uint16 SteamAPI_ISteamInput_GetSessionInputConfigurationSettings( ISteamInput* self )
{
return (get_steam_client()->steam_controller)->GetSessionInputConfigurationSettings();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamController *SteamAPI_SteamController_v007()
{
return get_steam_client()->GetISteamController(flat_hsteamuser(), flat_hsteampipe(), "SteamController007");
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API ISteamController *SteamAPI_SteamController_v008()
{
return get_steam_client()->GetISteamController(flat_hsteamuser(), flat_hsteampipe(), "SteamController008");
}
STEAMAPI_API steam_bool SteamAPI_ISteamController_Init( ISteamController* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->Init();
}
STEAMAPI_API steam_bool SteamAPI_ISteamController_Shutdown( ISteamController* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->Shutdown();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_RunFrame( ISteamController* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->RunFrame();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamController_GetConnectedControllers( ISteamController* self, ControllerHandle_t * handlesOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetConnectedControllers(handlesOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ControllerActionSetHandle_t SteamAPI_ISteamController_GetActionSetHandle( ISteamController* self, const char * pszActionSetName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActionSetHandle(pszActionSetName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_ActivateActionSet( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ActivateActionSet(controllerHandle, actionSetHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ControllerActionSetHandle_t SteamAPI_ISteamController_GetCurrentActionSet( ISteamController* self, ControllerHandle_t controllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetCurrentActionSet(controllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_ActivateActionSetLayer( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetLayerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ActivateActionSetLayer(controllerHandle, actionSetLayerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_DeactivateActionSetLayer( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetLayerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->DeactivateActionSetLayer(controllerHandle, actionSetLayerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_DeactivateAllActionSetLayers( ISteamController* self, ControllerHandle_t controllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->DeactivateAllActionSetLayers(controllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamController_GetActiveActionSetLayers( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t * handlesOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActiveActionSetLayers(controllerHandle, handlesOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ControllerDigitalActionHandle_t SteamAPI_ISteamController_GetDigitalActionHandle( ISteamController* self, const char * pszActionName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionHandle(pszActionName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputDigitalActionData_t SteamAPI_ISteamController_GetDigitalActionData( ISteamController* self, ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionData(controllerHandle, digitalActionHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamController_GetDigitalActionOrigins( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerDigitalActionHandle_t digitalActionHandle, EControllerActionOrigin * originsOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionOrigins(controllerHandle, actionSetHandle, digitalActionHandle, originsOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ControllerAnalogActionHandle_t SteamAPI_ISteamController_GetAnalogActionHandle( ISteamController* self, const char * pszActionName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionHandle(pszActionName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputAnalogActionData_t SteamAPI_ISteamController_GetAnalogActionData( ISteamController* self, ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionData(controllerHandle, analogActionHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamController_GetAnalogActionOrigins( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerAnalogActionHandle_t analogActionHandle, EControllerActionOrigin * originsOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionOrigins(controllerHandle, actionSetHandle, analogActionHandle, originsOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamController_GetGlyphForActionOrigin( ISteamController* self, EControllerActionOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGlyphForActionOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamController_GetStringForActionOrigin( ISteamController* self, EControllerActionOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetStringForActionOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_StopAnalogActionMomentum( ISteamController* self, ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t eAction )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->StopAnalogActionMomentum(controllerHandle, eAction);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputMotionData_t SteamAPI_ISteamController_GetMotionData( ISteamController* self, ControllerHandle_t controllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetMotionData(controllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_TriggerHapticPulse( ISteamController* self, ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerHapticPulse(controllerHandle, eTargetPad, usDurationMicroSec);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_TriggerRepeatedHapticPulse( ISteamController* self, ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec, unsigned short usOffMicroSec, unsigned short unRepeat, unsigned int nFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerRepeatedHapticPulse(controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_TriggerVibration( ISteamController* self, ControllerHandle_t controllerHandle, unsigned short usLeftSpeed, unsigned short usRightSpeed )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerVibration(controllerHandle, usLeftSpeed, usRightSpeed);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_SetLEDColor( ISteamController* self, ControllerHandle_t controllerHandle, uint8 nColorR, uint8 nColorG, uint8 nColorB, unsigned int nFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->SetLEDColor(controllerHandle, nColorR, nColorG, nColorB, nFlags);
}
STEAMAPI_API steam_bool SteamAPI_ISteamController_ShowBindingPanel( ISteamController* self, ControllerHandle_t controllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ShowBindingPanel(controllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamInputType SteamAPI_ISteamController_GetInputTypeForHandle( ISteamController* self, ControllerHandle_t controllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetInputTypeForHandle(controllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ControllerHandle_t SteamAPI_ISteamController_GetControllerForGamepadIndex( ISteamController* self, int nIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetControllerForGamepadIndex(nIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamController_GetGamepadIndexForController( ISteamController* self, ControllerHandle_t ulControllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGamepadIndexForController(ulControllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamController_GetStringForXboxOrigin( ISteamController* self, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetStringForXboxOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamController_GetGlyphForXboxOrigin( ISteamController* self, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGlyphForXboxOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EControllerActionOrigin SteamAPI_ISteamController_GetActionOriginFromXboxOrigin( ISteamController* self, ControllerHandle_t controllerHandle, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActionOriginFromXboxOrigin_(controllerHandle, eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EControllerActionOrigin SteamAPI_ISteamController_TranslateActionOrigin( ISteamController* self, ESteamInputType eDestinationInputType, EControllerActionOrigin eSourceOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TranslateActionOrigin(eDestinationInputType, eSourceOrigin);
}
STEAMAPI_API steam_bool SteamAPI_ISteamController_GetControllerBindingRevision( ISteamController* self, ControllerHandle_t controllerHandle, int * pMajor, int * pMinor )
2019-07-28 13:02:09 +00:00
{
return (get_steam_client()->steam_controller)->GetControllerBindingRevision(controllerHandle, pMajor, pMinor);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUGC *SteamAPI_SteamUGC_v014()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamUGC(flat_hsteamuser(), flat_hsteampipe(), "STEAMUGC_INTERFACE_VERSION014");
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API ISteamUGC *SteamAPI_SteamUGC_v015()
{
return get_steam_client()->GetISteamUGC(flat_hsteamuser(), flat_hsteampipe(), "STEAMUGC_INTERFACE_VERSION015");
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API ISteamUGC *SteamAPI_SteamUGC_v016()
{
return get_steam_client()->GetISteamUGC(flat_hsteamuser(), flat_hsteampipe(), "STEAMUGC_INTERFACE_VERSION016");
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUGC *SteamAPI_SteamGameServerUGC_v014()
{
return get_steam_client()->GetISteamUGC(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "STEAMUGC_INTERFACE_VERSION014");
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API ISteamUGC *SteamAPI_SteamGameServerUGC_v015()
{
return get_steam_client()->GetISteamUGC(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "STEAMUGC_INTERFACE_VERSION015");
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API ISteamUGC *SteamAPI_SteamGameServerUGC_v016()
{
return get_steam_client()->GetISteamUGC(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "STEAMUGC_INTERFACE_VERSION016");
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryUserUGCRequest( ISteamUGC* self, AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint32 unPage )
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryUserUGCRequest(unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage);
}
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(intptr_t instancePtr, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint32 unPage)
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage);
}
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryAllUGCRequest0(intptr_t instancePtr, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, const char * pchCursor)
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, pchCursor);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryAllUGCRequestPage( ISteamUGC* self, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint32 unPage )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2020-03-25 17:43:23 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage);
}
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryAllUGCRequestCursor( ISteamUGC* self, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, const char * pchCursor )
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2020-03-25 17:43:23 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, pchCursor);
}
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest( ISteamUGC* self, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs )
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryUGCDetailsRequest(pvecPublishedFileID, unNumPublishedFileIDs);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SendQueryUGCRequest( ISteamUGC* self, UGCQueryHandle_t handle )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SendQueryUGCRequest(handle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryUGCResult( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t * pDetails )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCResult(handle, index, pDetails);
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetQueryUGCNumTags( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index )
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2021-01-18 03:46:00 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCNumTags(handle, index);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryUGCTag( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, uint32 indexTag, char * pchValue, uint32 cchValueSize )
2021-01-18 03:46:00 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2021-01-18 03:46:00 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCTag(handle, index, indexTag, pchValue, cchValueSize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryUGCTagDisplayName( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, uint32 indexTag, char * pchValue, uint32 cchValueSize )
2021-01-18 03:46:00 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2021-01-18 03:46:00 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCTagDisplayName(handle, index, indexTag, pchValue, cchValueSize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryUGCPreviewURL( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, char * pchURL, uint32 cchURLSize )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCPreviewURL(handle, index, pchURL, cchURLSize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryUGCMetadata( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, char * pchMetadata, uint32 cchMetadatasize )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCMetadata(handle, index, pchMetadata, cchMetadatasize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryUGCChildren( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, PublishedFileId_t * pvecPublishedFileID, uint32 cMaxEntries )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCChildren(handle, index, pvecPublishedFileID, cMaxEntries);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryUGCStatistic( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, EItemStatistic eStatType, uint64 * pStatValue )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCStatistic(handle, index, eStatType, pStatValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCNumAdditionalPreviews(handle, index);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, char * pchOriginalFileName, uint32 cchOriginalFileNameSize, EItemPreviewType * pPreviewType )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCAdditionalPreview(handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCNumKeyValueTags(handle, index);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, uint32 keyValueTagIndex, char * pchKey, uint32 cchKeySize, char * pchValue, uint32 cchValueSize )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCKeyValueTag(handle, index, keyValueTagIndex, pchKey, cchKeySize, pchValue, cchValueSize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag0(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, const char * pchKey, char * pchValue, uint32 cchValueSize)
2019-07-28 13:02:09 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_ugc);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCKeyValueTag(handle, index, pchKey, pchValue, cchValueSize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetQueryFirstUGCKeyValueTag( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, const char * pchKey, char * pchValue, uint32 cchValueSize )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2020-03-25 17:43:23 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCKeyValueTag(handle, index, pchKey, pchValue, cchValueSize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_ReleaseQueryUGCRequest( ISteamUGC* self, UGCQueryHandle_t handle )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->ReleaseQueryUGCRequest(handle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_AddRequiredTag( ISteamUGC* self, UGCQueryHandle_t handle, const char * pTagName )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddRequiredTag(handle, pTagName);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_AddRequiredTagGroup( ISteamUGC* self, UGCQueryHandle_t handle, const SteamParamStringArray_t * pTagGroups )
2019-12-09 17:49:55 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-12-09 17:49:55 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddRequiredTagGroup(handle, pTagGroups);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_AddExcludedTag( ISteamUGC* self, UGCQueryHandle_t handle, const char * pTagName )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddExcludedTag(handle, pTagName);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetReturnOnlyIDs( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnOnlyIDs )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnOnlyIDs(handle, bReturnOnlyIDs);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetReturnKeyValueTags( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnKeyValueTags )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnKeyValueTags(handle, bReturnKeyValueTags);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetReturnLongDescription( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnLongDescription )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnLongDescription(handle, bReturnLongDescription);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetReturnMetadata( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnMetadata )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnMetadata(handle, bReturnMetadata);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetReturnChildren( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnChildren )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnChildren(handle, bReturnChildren);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetReturnAdditionalPreviews( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnAdditionalPreviews )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnAdditionalPreviews(handle, bReturnAdditionalPreviews);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetReturnTotalOnly( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnTotalOnly )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnTotalOnly(handle, bReturnTotalOnly);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetReturnPlaytimeStats( ISteamUGC* self, UGCQueryHandle_t handle, uint32 unDays )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnPlaytimeStats(handle, unDays);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetLanguage( ISteamUGC* self, UGCQueryHandle_t handle, const char * pchLanguage )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetLanguage(handle, pchLanguage);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetAllowCachedResponse( ISteamUGC* self, UGCQueryHandle_t handle, uint32 unMaxAgeSeconds )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetAllowCachedResponse(handle, unMaxAgeSeconds);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetCloudFileNameFilter( ISteamUGC* self, UGCQueryHandle_t handle, const char * pMatchCloudFileName )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetCloudFileNameFilter(handle, pMatchCloudFileName);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetMatchAnyTag( ISteamUGC* self, UGCQueryHandle_t handle, bool bMatchAnyTag )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetMatchAnyTag(handle, bMatchAnyTag);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetSearchText( ISteamUGC* self, UGCQueryHandle_t handle, const char * pSearchText )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetSearchText(handle, pSearchText);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetRankedByTrendDays( ISteamUGC* self, UGCQueryHandle_t handle, uint32 unDays )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetRankedByTrendDays(handle, unDays);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetTimeCreatedDateRange( ISteamUGC* self, UGCQueryHandle_t handle, RTime32 rtStart, RTime32 rtEnd )
2022-01-25 20:49:26 +00:00
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetTimeCreatedDateRange(handle, rtStart, rtEnd);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetTimeUpdatedDateRange( ISteamUGC* self, UGCQueryHandle_t handle, RTime32 rtStart, RTime32 rtEnd )
2022-01-25 20:49:26 +00:00
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetTimeUpdatedDateRange(handle, rtStart, rtEnd);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_AddRequiredKeyValueTag( ISteamUGC* self, UGCQueryHandle_t handle, const char * pKey, const char * pValue )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddRequiredKeyValueTag(handle, pKey, pValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RequestUGCDetails( ISteamUGC* self, PublishedFileId_t nPublishedFileID, uint32 unMaxAgeSeconds )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RequestUGCDetails(nPublishedFileID, unMaxAgeSeconds);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_CreateItem( ISteamUGC* self, AppId_t nConsumerAppId, EWorkshopFileType eFileType )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateItem(nConsumerAppId, eFileType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API UGCUpdateHandle_t SteamAPI_ISteamUGC_StartItemUpdate( ISteamUGC* self, AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->StartItemUpdate(nConsumerAppId, nPublishedFileID);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetItemTitle( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchTitle )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemTitle(handle, pchTitle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetItemDescription( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchDescription )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemDescription(handle, pchDescription);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetItemUpdateLanguage( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchLanguage )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemUpdateLanguage(handle, pchLanguage);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetItemMetadata( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchMetaData )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemMetadata(handle, pchMetaData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetItemVisibility( ISteamUGC* self, UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemVisibility(handle, eVisibility);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetItemTags( ISteamUGC* self, UGCUpdateHandle_t updateHandle, const SteamParamStringArray_t * pTags )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemTags(updateHandle, pTags);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetItemContent( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszContentFolder )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemContent(handle, pszContentFolder);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetItemPreview( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszPreviewFile )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemPreview(handle, pszPreviewFile);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_SetAllowLegacyUpload( ISteamUGC* self, UGCUpdateHandle_t handle, bool bAllowLegacyUpload )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetAllowLegacyUpload(handle, bAllowLegacyUpload);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_RemoveAllItemKeyValueTags( ISteamUGC* self, UGCUpdateHandle_t handle )
2019-07-28 13:02:09 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveAllItemKeyValueTags(handle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_RemoveItemKeyValueTags( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveItemKeyValueTags(handle, pchKey);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_AddItemKeyValueTag( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddItemKeyValueTag(handle, pchKey, pchValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_AddItemPreviewFile( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszPreviewFile, EItemPreviewType type )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddItemPreviewFile(handle, pszPreviewFile, type);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_AddItemPreviewVideo( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszVideoID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddItemPreviewVideo(handle, pszVideoID);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_UpdateItemPreviewFile( ISteamUGC* self, UGCUpdateHandle_t handle, uint32 index, const char * pszPreviewFile )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->UpdateItemPreviewFile(handle, index, pszPreviewFile);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_UpdateItemPreviewVideo( ISteamUGC* self, UGCUpdateHandle_t handle, uint32 index, const char * pszVideoID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->UpdateItemPreviewVideo(handle, index, pszVideoID);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_RemoveItemPreview( ISteamUGC* self, UGCUpdateHandle_t handle, uint32 index )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveItemPreview(handle, index);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SubmitItemUpdate( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchChangeNote )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SubmitItemUpdate(handle, pchChangeNote);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EItemUpdateStatus SteamAPI_ISteamUGC_GetItemUpdateProgress( ISteamUGC* self, UGCUpdateHandle_t handle, uint64 * punBytesProcessed, uint64 * punBytesTotal )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetItemUpdateProgress(handle, punBytesProcessed, punBytesTotal);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SetUserItemVote( ISteamUGC* self, PublishedFileId_t nPublishedFileID, bool bVoteUp )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetUserItemVote(nPublishedFileID, bVoteUp);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_GetUserItemVote( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetUserItemVote(nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_AddItemToFavorites( ISteamUGC* self, AppId_t nAppId, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddItemToFavorites(nAppId, nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveItemFromFavorites( ISteamUGC* self, AppId_t nAppId, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveItemFromFavorites(nAppId, nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SubscribeItem( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SubscribeItem(nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_UnsubscribeItem( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->UnsubscribeItem(nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetNumSubscribedItems( ISteamUGC* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetNumSubscribedItems();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetSubscribedItems( ISteamUGC* self, PublishedFileId_t * pvecPublishedFileID, uint32 cMaxEntries )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetSubscribedItems(pvecPublishedFileID, cMaxEntries);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetItemState( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetItemState(nPublishedFileID);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetItemInstallInfo( ISteamUGC* self, PublishedFileId_t nPublishedFileID, uint64 * punSizeOnDisk, char * pchFolder, uint32 cchFolderSize, uint32 * punTimeStamp )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetItemInstallInfo(nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_GetItemDownloadInfo( ISteamUGC* self, PublishedFileId_t nPublishedFileID, uint64 * punBytesDownloaded, uint64 * punBytesTotal )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetItemDownloadInfo(nPublishedFileID, punBytesDownloaded, punBytesTotal);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_DownloadItem( ISteamUGC* self, PublishedFileId_t nPublishedFileID, bool bHighPriority )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->DownloadItem(nPublishedFileID, bHighPriority);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_BInitWorkshopForGameServer( ISteamUGC* self, DepotId_t unWorkshopDepotID, const char * pszFolder )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->BInitWorkshopForGameServer(unWorkshopDepotID, pszFolder);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUGC_SuspendDownloads( ISteamUGC* self, bool bSuspend )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SuspendDownloads(bSuspend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_StartPlaytimeTracking( ISteamUGC* self, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->StartPlaytimeTracking(pvecPublishedFileID, unNumPublishedFileIDs);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_StopPlaytimeTracking( ISteamUGC* self, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->StopPlaytimeTracking(pvecPublishedFileID, unNumPublishedFileIDs);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems( ISteamUGC* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->StopPlaytimeTrackingForAllItems();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_AddDependency( ISteamUGC* self, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddDependency(nParentPublishedFileID, nChildPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveDependency( ISteamUGC* self, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveDependency(nParentPublishedFileID, nChildPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_AddAppDependency( ISteamUGC* self, PublishedFileId_t nPublishedFileID, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddAppDependency(nPublishedFileID, nAppID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveAppDependency( ISteamUGC* self, PublishedFileId_t nPublishedFileID, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveAppDependency(nPublishedFileID, nAppID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_GetAppDependencies( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetAppDependencies(nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_DeleteItem( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->DeleteItem(nPublishedFileID);
}
STEAMAPI_API steam_bool SteamAPI_ISteamUGC_ShowWorkshopEULA( ISteamUGC* self )
2021-12-06 21:51:17 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2021-12-06 21:51:17 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->ShowWorkshopEULA();
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_GetWorkshopEULAStatus( ISteamUGC* self )
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2021-12-06 21:51:17 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetWorkshopEULAStatus();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamAppList *SteamAPI_SteamAppList_v001()
{
return get_steam_client()->GetISteamAppList(flat_hsteamuser(), flat_hsteampipe(), "STEAMAPPLIST_INTERFACE_VERSION001");
}
STEAMAPI_API uint32 SteamAPI_ISteamAppList_GetNumInstalledApps( ISteamAppList* self )
{
return self->GetNumInstalledApps();
}
STEAMAPI_API uint32 SteamAPI_ISteamAppList_GetInstalledApps( ISteamAppList* self, AppId_t * pvecAppID, uint32 unMaxAppIDs )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetInstalledApps(pvecAppID, unMaxAppIDs);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamAppList_GetAppName( ISteamAppList* self, AppId_t nAppID, char * pchName, int cchNameMax )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppName(nAppID, pchName, cchNameMax);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamAppList_GetAppInstallDir( ISteamAppList* self, AppId_t nAppID, char * pchDirectory, int cchNameMax )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppInstallDir(nAppID, pchDirectory, cchNameMax);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamAppList_GetAppBuildId( ISteamAppList* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppBuildId(nAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamHTMLSurface *SteamAPI_SteamHTMLSurface_v005()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamHTMLSurface(flat_hsteamuser(), flat_hsteampipe(), "STEAMHTMLSURFACE_INTERFACE_VERSION_005");
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(intptr_t instancePtr)
2019-04-13 16:21:56 +00:00
{
//return (get_steam_client()->steam_HTMLsurface)->DestructISteamHTMLSurface();
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTMLSurface_Init( ISteamHTMLSurface* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->Init();
}
STEAMAPI_API steam_bool SteamAPI_ISteamHTMLSurface_Shutdown( ISteamHTMLSurface* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->Shutdown();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamHTMLSurface_CreateBrowser( ISteamHTMLSurface* self, const char * pchUserAgent, const char * pchUserCSS )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->CreateBrowser(pchUserAgent, pchUserCSS);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_RemoveBrowser( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->RemoveBrowser(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_LoadURL( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, const char * pchURL, const char * pchPostData )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->LoadURL(unBrowserHandle, pchURL, pchPostData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetSize( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 unWidth, uint32 unHeight )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetSize(unBrowserHandle, unWidth, unHeight);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_StopLoad( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->StopLoad(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_Reload( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->Reload(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_GoBack( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->GoBack(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_GoForward( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->GoForward(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_AddHeader( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->AddHeader(unBrowserHandle, pchKey, pchValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_ExecuteJavascript( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, const char * pchScript )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->ExecuteJavascript(unBrowserHandle, pchScript);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseUp( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->MouseUp(unBrowserHandle, eMouseButton);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseDown( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->MouseDown(unBrowserHandle, eMouseButton);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseDoubleClick( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->MouseDoubleClick(unBrowserHandle, eMouseButton);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseMove( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, int x, int y )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->MouseMove(unBrowserHandle, x, y);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseWheel( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, int32 nDelta )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->MouseWheel(unBrowserHandle, nDelta);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_KeyDown( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers, bool bIsSystemKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->KeyDown(unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers, bIsSystemKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_KeyUp( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->KeyUp(unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_KeyChar( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->KeyChar(unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetHorizontalScroll( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 nAbsolutePixelScroll )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetHorizontalScroll(unBrowserHandle, nAbsolutePixelScroll);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetVerticalScroll( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 nAbsolutePixelScroll )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetVerticalScroll(unBrowserHandle, nAbsolutePixelScroll);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetKeyFocus( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, bool bHasKeyFocus )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetKeyFocus(unBrowserHandle, bHasKeyFocus);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_ViewSource( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->ViewSource(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_CopyToClipboard( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->CopyToClipboard(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_PasteFromClipboard( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->PasteFromClipboard(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_Find( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, const char * pchSearchStr, bool bCurrentlyInFind, bool bReverse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->Find(unBrowserHandle, pchSearchStr, bCurrentlyInFind, bReverse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_StopFind( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->StopFind(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_GetLinkAtPosition( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, int x, int y )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->GetLinkAtPosition(unBrowserHandle, x, y);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetCookie( ISteamHTMLSurface* self, const char * pchHostname, const char * pchKey, const char * pchValue, const char * pchPath, RTime32 nExpires, bool bSecure, bool bHTTPOnly )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetCookie(pchHostname, pchKey, pchValue, pchPath, nExpires, bSecure, bHTTPOnly);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetPageScaleFactor( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetPageScaleFactor(unBrowserHandle, flZoom, nPointX, nPointY);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetBackgroundMode( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, bool bBackgroundMode )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetBackgroundMode(unBrowserHandle, bBackgroundMode);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, float flDPIScaling )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetDPIScalingFactor(unBrowserHandle, flDPIScaling);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_OpenDeveloperTools( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->OpenDeveloperTools(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_AllowStartRequest( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, bool bAllowed )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->AllowStartRequest(unBrowserHandle, bAllowed);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_JSDialogResponse( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, bool bResult )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->JSDialogResponse(unBrowserHandle, bResult);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, const char ** pchSelectedFiles )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return (get_steam_client()->steam_HTMLsurface)->FileLoadDialogResponse(unBrowserHandle, pchSelectedFiles);
}
STEAMAPI_API ISteamInventory *SteamAPI_SteamInventory_v003()
{
return get_steam_client()->GetISteamInventory(flat_hsteamuser(), flat_hsteampipe(), "STEAMINVENTORY_INTERFACE_V003");
}
STEAMAPI_API ISteamInventory *SteamAPI_SteamGameServerInventory_v003()
{
return get_steam_client()->GetISteamInventory(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "STEAMINVENTORY_INTERFACE_V003");
}
STEAMAPI_API EResult SteamAPI_ISteamInventory_GetResultStatus( ISteamInventory* self, SteamInventoryResult_t resultHandle )
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetResultStatus(resultHandle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GetResultItems( ISteamInventory* self, SteamInventoryResult_t resultHandle, SteamItemDetails_t * pOutItemsArray, uint32 * punOutItemsArraySize )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetResultItems(resultHandle, pOutItemsArray, punOutItemsArraySize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GetResultItemProperty( ISteamInventory* self, SteamInventoryResult_t resultHandle, uint32 unItemIndex, const char * pchPropertyName, char * pchValueBuffer, uint32 * punValueBufferSizeOut )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetResultItemProperty(resultHandle, unItemIndex, pchPropertyName, pchValueBuffer, punValueBufferSizeOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamInventory_GetResultTimestamp( ISteamInventory* self, SteamInventoryResult_t resultHandle )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetResultTimestamp(resultHandle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_CheckResultSteamID( ISteamInventory* self, SteamInventoryResult_t resultHandle, uint64_steamid steamIDExpected )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->CheckResultSteamID(resultHandle, steamIDExpected);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInventory_DestroyResult( ISteamInventory* self, SteamInventoryResult_t resultHandle )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->DestroyResult(resultHandle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GetAllItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetAllItems(pResultHandle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GetItemsByID( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, const SteamItemInstanceID_t * pInstanceIDs, uint32 unCountInstanceIDs )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetItemsByID(pResultHandle, pInstanceIDs, unCountInstanceIDs);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_SerializeResult( ISteamInventory* self, SteamInventoryResult_t resultHandle, void * pOutBuffer, uint32 * punOutBufferSize )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SerializeResult(resultHandle, pOutBuffer, punOutBufferSize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_DeserializeResult( ISteamInventory* self, SteamInventoryResult_t * pOutResultHandle, const void * pBuffer, uint32 unBufferSize, bool bRESERVED_MUST_BE_FALSE )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->DeserializeResult(pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GenerateItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, const SteamItemDef_t * pArrayItemDefs, const uint32 * punArrayQuantity, uint32 unArrayLength )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GenerateItems(pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GrantPromoItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GrantPromoItems(pResultHandle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_AddPromoItem( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, SteamItemDef_t itemDef )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->AddPromoItem(pResultHandle, itemDef);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_AddPromoItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, const SteamItemDef_t * pArrayItemDefs, uint32 unArrayLength )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->AddPromoItems(pResultHandle, pArrayItemDefs, unArrayLength);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_ConsumeItem( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, SteamItemInstanceID_t itemConsume, uint32 unQuantity )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->ConsumeItem(pResultHandle, itemConsume, unQuantity);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_ExchangeItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, const SteamItemDef_t * pArrayGenerate, const uint32 * punArrayGenerateQuantity, uint32 unArrayGenerateLength, const SteamItemInstanceID_t * pArrayDestroy, const uint32 * punArrayDestroyQuantity, uint32 unArrayDestroyLength )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->ExchangeItems(pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_TransferItemQuantity( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, SteamItemInstanceID_t itemIdSource, uint32 unQuantity, SteamItemInstanceID_t itemIdDest )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->TransferItemQuantity(pResultHandle, itemIdSource, unQuantity, itemIdDest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInventory_SendItemDropHeartbeat( ISteamInventory* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SendItemDropHeartbeat();
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_TriggerItemDrop( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, SteamItemDef_t dropListDefinition )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->TriggerItemDrop(pResultHandle, dropListDefinition);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_TradeItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, uint64_steamid steamIDTradePartner, const SteamItemInstanceID_t * pArrayGive, const uint32 * pArrayGiveQuantity, uint32 nArrayGiveLength, const SteamItemInstanceID_t * pArrayGet, const uint32 * pArrayGetQuantity, uint32 nArrayGetLength )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->TradeItems(pResultHandle, steamIDTradePartner, pArrayGive, pArrayGiveQuantity, nArrayGiveLength, pArrayGet, pArrayGetQuantity, nArrayGetLength);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_LoadItemDefinitions( ISteamInventory* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->LoadItemDefinitions();
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GetItemDefinitionIDs( ISteamInventory* self, SteamItemDef_t * pItemDefIDs, uint32 * punItemDefIDsArraySize )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetItemDefinitionIDs(pItemDefIDs, punItemDefIDsArraySize);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GetItemDefinitionProperty( ISteamInventory* self, SteamItemDef_t iDefinition, const char * pchPropertyName, char * pchValueBuffer, uint32 * punValueBufferSizeOut )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetItemDefinitionProperty(iDefinition, pchPropertyName, pchValueBuffer, punValueBufferSizeOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( ISteamInventory* self, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->RequestEligiblePromoItemDefinitionsIDs(steamID);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs( ISteamInventory* self, uint64_steamid steamID, SteamItemDef_t * pItemDefIDs, uint32 * punItemDefIDsArraySize )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetEligiblePromoItemDefinitionIDs(steamID, pItemDefIDs, punItemDefIDsArraySize);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamInventory_StartPurchase( ISteamInventory* self, const SteamItemDef_t * pArrayItemDefs, const uint32 * punArrayQuantity, uint32 unArrayLength )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->StartPurchase(pArrayItemDefs, punArrayQuantity, unArrayLength);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamInventory_RequestPrices( ISteamInventory* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->RequestPrices();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamInventory_GetNumItemsWithPrices( ISteamInventory* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetNumItemsWithPrices();
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GetItemsWithPrices( ISteamInventory* self, SteamItemDef_t * pArrayItemDefs, uint64 * pCurrentPrices, uint64 * pBasePrices, uint32 unArrayLength )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetItemsWithPrices(pArrayItemDefs, pCurrentPrices, pBasePrices, unArrayLength);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_GetItemPrice( ISteamInventory* self, SteamItemDef_t iDefinition, uint64 * pCurrentPrice, uint64 * pBasePrice )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetItemPrice(iDefinition, pCurrentPrice, pBasePrice);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamInventoryUpdateHandle_t SteamAPI_ISteamInventory_StartUpdateProperties( ISteamInventory* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->StartUpdateProperties();
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_RemoveProperty( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->RemoveProperty(handle, nItemID, pchPropertyName);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_SetProperty(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, const char * pchPropertyValue)
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, pchPropertyValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_SetProperty0(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, bool bValue)
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, bValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_SetProperty1(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, int64 nValue)
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, nValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_SetProperty2(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, float flValue)
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, flValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_SetPropertyString( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, const char * pchPropertyValue )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2020-03-25 17:43:23 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, pchPropertyValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_SetPropertyBool( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, bool bValue )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2020-03-25 17:43:23 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, bValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_SetPropertyInt64( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, int64 nValue )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2020-03-25 17:43:23 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, nValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_SetPropertyFloat( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, float flValue )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2020-03-25 17:43:23 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, flValue);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_SubmitUpdateProperties( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamInventoryResult_t * pResultHandle )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SubmitUpdateProperties(handle, pResultHandle);
}
STEAMAPI_API steam_bool SteamAPI_ISteamInventory_InspectItem( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, const char * pchItemToken )
2020-06-14 20:04:43 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2020-06-14 20:04:43 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->InspectItem(pResultHandle, pchItemToken);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamVideo *SteamAPI_SteamVideo_v002()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamVideo(flat_hsteamuser(), flat_hsteampipe(), "STEAMVIDEO_INTERFACE_V002");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamVideo_GetVideoURL( ISteamVideo* self, AppId_t unVideoAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetVideoURL(unVideoAppID);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamVideo_IsBroadcasting( ISteamVideo* self, int * pnNumViewers )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->IsBroadcasting(pnNumViewers);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamVideo_GetOPFSettings( ISteamVideo* self, AppId_t unVideoAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetOPFSettings(unVideoAppID);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamVideo_GetOPFStringForApp( ISteamVideo* self, AppId_t unVideoAppID, char * pchBuffer, int32 * pnBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetOPFStringForApp(unVideoAppID, pchBuffer, pnBufferSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
ISteamTV *SteamAPI_SteamTV_v001()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return (ISteamTV *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "STEAMTV_INTERFACE_V001");
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamTV_IsBroadcasting( ISteamTV* self, int * pnNumViewers )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->IsBroadcasting(pnNumViewers);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamTV_AddBroadcastGameData( ISteamTV* self, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AddBroadcastGameData(pchKey, pchValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamTV_RemoveBroadcastGameData( ISteamTV* self, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RemoveBroadcastGameData(pchKey);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamTV_AddTimelineMarker( ISteamTV* self, const char * pchTemplateName, bool bPersistent, uint8 nColorR, uint8 nColorG, uint8 nColorB )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AddTimelineMarker(pchTemplateName, bPersistent, nColorR, nColorG, nColorB);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamTV_RemoveTimelineMarker( ISteamTV* self )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RemoveTimelineMarker();
2019-07-28 13:02:09 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamTV_AddRegion( ISteamTV* self, const char * pchElementName, const char * pchTimelineDataSection, const SteamTVRegion_t * pSteamTVRegion, ESteamTVRegionBehavior eSteamTVRegionBehavior )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AddRegion(pchElementName, pchTimelineDataSection, pSteamTVRegion, eSteamTVRegionBehavior);
2019-07-28 13:02:09 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamTV_RemoveRegion( ISteamTV* self, uint32 unRegionHandle )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RemoveRegion(unRegionHandle);
2019-07-28 13:02:09 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamParentalSettings *SteamAPI_SteamParentalSettings_v001()
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamParentalSettings(flat_hsteamuser(), flat_hsteampipe(), "STEAMPARENTALSETTINGS_INTERFACE_VERSION001");
2019-07-28 13:02:09 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled( ISteamParentalSettings* self )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsParentalLockEnabled();
2019-07-28 13:02:09 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParentalSettings_BIsParentalLockLocked( ISteamParentalSettings* self )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsParentalLockLocked();
2019-07-28 13:02:09 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParentalSettings_BIsAppBlocked( ISteamParentalSettings* self, AppId_t nAppID )
2019-12-09 17:49:55 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsAppBlocked(nAppID);
2019-12-09 17:49:55 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParentalSettings_BIsAppInBlockList( ISteamParentalSettings* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsAppInBlockList(nAppID);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParentalSettings_BIsFeatureBlocked( ISteamParentalSettings* self, EParentalFeature eFeature )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsFeatureBlocked(eFeature);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList( ISteamParentalSettings* self, EParentalFeature eFeature )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsFeatureInBlockList(eFeature);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamRemotePlay *SteamAPI_SteamRemotePlay_v001()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamRemotePlay(flat_hsteamuser(), flat_hsteampipe(), "STEAMREMOTEPLAY_INTERFACE_VERSION001");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamRemotePlay_GetSessionCount( ISteamRemotePlay* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSessionCount();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API RemotePlaySessionID_t SteamAPI_ISteamRemotePlay_GetSessionID( ISteamRemotePlay* self, int iSessionIndex )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSessionID(iSessionIndex);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamRemotePlay_GetSessionSteamID( ISteamRemotePlay* self, RemotePlaySessionID_t unSessionID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSessionSteamID(unSessionID).ConvertToUint64();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamRemotePlay_GetSessionClientName( ISteamRemotePlay* self, RemotePlaySessionID_t unSessionID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSessionClientName(unSessionID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamDeviceFormFactor SteamAPI_ISteamRemotePlay_GetSessionClientFormFactor( ISteamRemotePlay* self, RemotePlaySessionID_t unSessionID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSessionClientFormFactor(unSessionID);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemotePlay_BGetSessionClientResolution( ISteamRemotePlay* self, RemotePlaySessionID_t unSessionID, int * pnResolutionX, int * pnResolutionY )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BGetSessionClientResolution(unSessionID, pnResolutionX, pnResolutionY);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamRemotePlay_BSendRemotePlayTogetherInvite( ISteamRemotePlay* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BSendRemotePlayTogetherInvite(steamIDFriend);
2019-04-13 16:21:56 +00:00
}
2020-09-14 23:53:56 +00:00
STEAMAPI_API ISteamNetworkingMessages *SteamAPI_SteamNetworkingMessages_v002()
{
return (ISteamNetworkingMessages *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingMessages002");
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API ISteamNetworkingMessages *SteamAPI_SteamNetworkingMessages_SteamAPI_v002()
{
return (ISteamNetworkingMessages *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingMessages002");
}
2020-09-14 23:53:56 +00:00
STEAMAPI_API ISteamNetworkingMessages *SteamAPI_SteamGameServerNetworkingMessages_v002()
{
return (ISteamNetworkingMessages *)get_steam_client()->GetISteamGenericInterface(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamNetworkingMessages002");
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API ISteamNetworkingMessages *SteamAPI_SteamGameServerNetworkingMessages_SteamAPI_v002()
{
return (ISteamNetworkingMessages *)get_steam_client()->GetISteamGenericInterface(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamNetworkingMessages002");
}
2020-09-14 23:53:56 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingMessages_SendMessageToUser( ISteamNetworkingMessages* self, const SteamNetworkingIdentity & identityRemote, const void * pubData, uint32 cubData, int nSendFlags, int nRemoteChannel )
{
return self->SendMessageToUser(identityRemote, pubData, cubData, nSendFlags, nRemoteChannel);
}
STEAMAPI_API int SteamAPI_ISteamNetworkingMessages_ReceiveMessagesOnChannel( ISteamNetworkingMessages* self, int nLocalChannel, SteamNetworkingMessage_t ** ppOutMessages, int nMaxMessages )
{
return self->ReceiveMessagesOnChannel(nLocalChannel, ppOutMessages, nMaxMessages);
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingMessages_AcceptSessionWithUser( ISteamNetworkingMessages* self, const SteamNetworkingIdentity & identityRemote )
2020-09-14 23:53:56 +00:00
{
return self->AcceptSessionWithUser(identityRemote);
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingMessages_CloseSessionWithUser( ISteamNetworkingMessages* self, const SteamNetworkingIdentity & identityRemote )
2020-09-14 23:53:56 +00:00
{
return self->CloseSessionWithUser(identityRemote);
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingMessages_CloseChannelWithUser( ISteamNetworkingMessages* self, const SteamNetworkingIdentity & identityRemote, int nLocalChannel )
2020-09-14 23:53:56 +00:00
{
return self->CloseChannelWithUser(identityRemote, nLocalChannel);
}
STEAMAPI_API ESteamNetworkingConnectionState SteamAPI_ISteamNetworkingMessages_GetSessionConnectionInfo( ISteamNetworkingMessages* self, const SteamNetworkingIdentity & identityRemote, SteamNetConnectionInfo_t * pConnectionInfo, SteamNetworkingQuickConnectionStatus * pQuickStatus )
{
return self->GetSessionConnectionInfo(identityRemote, pConnectionInfo, pQuickStatus);
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamNetworkingSockets_SteamAPI_v012()
{
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingSockets012");
}
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamGameServerNetworkingSockets_SteamAPI_v012()
{
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamNetworkingSockets012");
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamNetworkingSockets_SteamAPI_v011()
{
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingSockets011");
}
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamGameServerNetworkingSockets_SteamAPI_v011()
{
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamNetworkingSockets011");
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamNetworkingSockets_SteamAPI_v009()
{
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingSockets009");
}
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamGameServerNetworkingSockets_SteamAPI_v009()
{
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamNetworkingSockets009");
}
2020-09-14 23:53:56 +00:00
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamNetworkingSockets_v009()
{
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingSockets009");
}
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamGameServerNetworkingSockets_v009()
{
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamNetworkingSockets009");
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamNetworkingSockets_v008()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingSockets008");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamGameServerNetworkingSockets_v008()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamNetworkingSockets008");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamListenSocket SteamAPI_ISteamNetworkingSockets_CreateListenSocketIP( ISteamNetworkingSockets* self, const SteamNetworkingIPAddr & localAddress, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->CreateListenSocketIP(localAddress, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamNetConnection SteamAPI_ISteamNetworkingSockets_ConnectByIPAddress( ISteamNetworkingSockets* self, const SteamNetworkingIPAddr & address, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->ConnectByIPAddress(address, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API HSteamListenSocket SteamAPI_ISteamNetworkingSockets_CreateListenSocketP2P( ISteamNetworkingSockets* self, int nLocalVirtualPort, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->CreateListenSocketP2P(nLocalVirtualPort, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API HSteamNetConnection SteamAPI_ISteamNetworkingSockets_ConnectP2P( ISteamNetworkingSockets* self, const SteamNetworkingIdentity & identityRemote, int nRemoteVirtualPort, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->ConnectP2P(identityRemote, nRemoteVirtualPort, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_AcceptConnection( ISteamNetworkingSockets* self, HSteamNetConnection hConn )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->AcceptConnection(hConn);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_CloseConnection( ISteamNetworkingSockets* self, HSteamNetConnection hPeer, int nReason, const char * pszDebug, bool bEnableLinger )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->CloseConnection(hPeer, nReason, pszDebug, bEnableLinger);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_CloseListenSocket( ISteamNetworkingSockets* self, HSteamListenSocket hSocket )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->CloseListenSocket(hSocket);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_SetConnectionUserData( ISteamNetworkingSockets* self, HSteamNetConnection hPeer, int64 nUserData )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->SetConnectionUserData(hPeer, nUserData);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int64 SteamAPI_ISteamNetworkingSockets_GetConnectionUserData( ISteamNetworkingSockets* self, HSteamNetConnection hPeer )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetConnectionUserData(hPeer);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamNetworkingSockets_SetConnectionName( ISteamNetworkingSockets* self, HSteamNetConnection hPeer, const char * pszName )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->SetConnectionName(hPeer, pszName);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_GetConnectionName( ISteamNetworkingSockets* self, HSteamNetConnection hPeer, char * pszName, int nMaxLen )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetConnectionName(hPeer, pszName, nMaxLen);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_SendMessageToConnection( ISteamNetworkingSockets* self, HSteamNetConnection hConn, const void * pData, uint32 cbData, int nSendFlags, int64 * pOutMessageNumber )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->SendMessageToConnection(hConn, pData, cbData, nSendFlags, pOutMessageNumber);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamNetworkingSockets_SendMessages( ISteamNetworkingSockets* self, int nMessages, SteamNetworkingMessage_t *const * pMessages, int64 * pOutMessageNumberOrResult )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->SendMessages(nMessages, pMessages, pOutMessageNumberOrResult);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_FlushMessagesOnConnection( ISteamNetworkingSockets* self, HSteamNetConnection hConn )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->FlushMessagesOnConnection(hConn);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingSockets_ReceiveMessagesOnConnection( ISteamNetworkingSockets* self, HSteamNetConnection hConn, SteamNetworkingMessage_t ** ppOutMessages, int nMaxMessages )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->ReceiveMessagesOnConnection(hConn, ppOutMessages, nMaxMessages);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_GetConnectionInfo( ISteamNetworkingSockets* self, HSteamNetConnection hConn, SteamNetConnectionInfo_t * pInfo )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetConnectionInfo(hConn, pInfo);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_GetQuickConnectionStatus( ISteamNetworkingSockets009* self, HSteamNetConnection hConn, SteamNetworkingQuickConnectionStatus * pStats )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetQuickConnectionStatus(hConn, pStats);
}
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_GetConnectionRealTimeStatus( ISteamNetworkingSockets* self, HSteamNetConnection hConn, SteamNetConnectionRealTimeStatus_t * pStatus, int nLanes, SteamNetConnectionRealTimeLaneStatus_t * pLanes )
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetConnectionRealTimeStatus(hConn, pStatus, nLanes, pLanes);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingSockets_GetDetailedConnectionStatus( ISteamNetworkingSockets* self, HSteamNetConnection hConn, char * pszBuf, int cbBuf )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetDetailedConnectionStatus(hConn, pszBuf, cbBuf);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_GetListenSocketAddress( ISteamNetworkingSockets* self, HSteamListenSocket hSocket, SteamNetworkingIPAddr * address )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetListenSocketAddress(hSocket, address);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_CreateSocketPair( ISteamNetworkingSockets* self, HSteamNetConnection * pOutConnection1, HSteamNetConnection * pOutConnection2, bool bUseNetworkLoopback, const SteamNetworkingIdentity * pIdentity1, const SteamNetworkingIdentity * pIdentity2 )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->CreateSocketPair(pOutConnection1, pOutConnection2, bUseNetworkLoopback, pIdentity1, pIdentity2);
}
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_ConfigureConnectionLanes( ISteamNetworkingSockets* self, HSteamNetConnection hConn, int nNumLanes, const int * pLanePriorities, const uint16 * pLaneWeights )
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->ConfigureConnectionLanes(hConn, nNumLanes, pLanePriorities, pLaneWeights);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_GetIdentity( ISteamNetworkingSockets* self, SteamNetworkingIdentity * pIdentity )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetIdentity(pIdentity);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamNetworkingAvailability SteamAPI_ISteamNetworkingSockets_InitAuthentication( ISteamNetworkingSockets* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->InitAuthentication();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamNetworkingAvailability SteamAPI_ISteamNetworkingSockets_GetAuthenticationStatus( ISteamNetworkingSockets* self, SteamNetAuthenticationStatus_t * pDetails )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetAuthenticationStatus(pDetails);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamNetPollGroup SteamAPI_ISteamNetworkingSockets_CreatePollGroup( ISteamNetworkingSockets* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->CreatePollGroup();
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_DestroyPollGroup( ISteamNetworkingSockets* self, HSteamNetPollGroup hPollGroup )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->DestroyPollGroup(hPollGroup);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_SetConnectionPollGroup( ISteamNetworkingSockets* self, HSteamNetConnection hConn, HSteamNetPollGroup hPollGroup )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->SetConnectionPollGroup(hConn, hPollGroup);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingSockets_ReceiveMessagesOnPollGroup( ISteamNetworkingSockets* self, HSteamNetPollGroup hPollGroup, SteamNetworkingMessage_t ** ppOutMessages, int nMaxMessages )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->ReceiveMessagesOnPollGroup(hPollGroup, ppOutMessages, nMaxMessages);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_ReceivedRelayAuthTicket( ISteamNetworkingSockets* self, const void * pvTicket, int cbTicket, SteamDatagramRelayAuthTicket * pOutParsedTicket )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->ReceivedRelayAuthTicket(pvTicket, cbTicket, pOutParsedTicket);
2019-04-13 16:21:56 +00:00
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingSockets_FindRelayAuthTicketForServer( ISteamNetworkingSockets* self, const SteamNetworkingIdentity & identityGameServer, int nRemoteVirtualPort, SteamDatagramRelayAuthTicket * pOutParsedTicket )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->FindRelayAuthTicketForServer(identityGameServer, nRemoteVirtualPort, pOutParsedTicket);
2019-04-13 16:21:56 +00:00
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API HSteamNetConnection SteamAPI_ISteamNetworkingSockets_ConnectToHostedDedicatedServer( ISteamNetworkingSockets* self, const SteamNetworkingIdentity & identityTarget, int nRemoteVirtualPort, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->ConnectToHostedDedicatedServer(identityTarget, nRemoteVirtualPort, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint16 SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerPort( ISteamNetworkingSockets* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetHostedDedicatedServerPort();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamNetworkingPOPID SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerPOPID( ISteamNetworkingSockets* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetHostedDedicatedServerPOPID();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerAddress( ISteamNetworkingSockets* self, SteamDatagramHostedAddress * pRouting )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetHostedDedicatedServerAddress(pRouting);
2019-04-13 16:21:56 +00:00
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API HSteamListenSocket SteamAPI_ISteamNetworkingSockets_CreateHostedDedicatedServerListenSocket( ISteamNetworkingSockets* self, int nLocalVirtualPort, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->CreateHostedDedicatedServerListenSocket(nLocalVirtualPort, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_GetGameCoordinatorServerLogin( ISteamNetworkingSockets* self, SteamDatagramGameCoordinatorServerLogin * pLoginInfo, int * pcbSignedBlob, void * pBlob )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetGameCoordinatorServerLogin(pLoginInfo, pcbSignedBlob, pBlob);
2019-04-13 16:21:56 +00:00
}
2022-01-25 20:49:26 +00:00
//TODO: implement old version if needed
//I don't think anything actually uses this function, especially not in flat api form so I'll just leave it like this.
//STEAMAPI_API HSteamNetConnection SteamAPI_ISteamNetworkingSockets_ConnectP2PCustomSignaling( ISteamNetworkingSockets* self, ISteamNetworkingConnectionCustomSignaling * pSignaling, const SteamNetworkingIdentity * pPeerIdentity, int nOptions, const SteamNetworkingConfigValue_t * pOptions );
2020-09-14 23:53:56 +00:00
STEAMAPI_API HSteamNetConnection SteamAPI_ISteamNetworkingSockets_ConnectP2PCustomSignaling( ISteamNetworkingSockets* self, ISteamNetworkingConnectionCustomSignaling * pSignaling, const SteamNetworkingIdentity * pPeerIdentity, int nRemoteVirtualPort, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->ConnectP2PCustomSignaling(pSignaling, pPeerIdentity, nRemoteVirtualPort, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_ReceivedP2PCustomSignal( ISteamNetworkingSockets* self, const void * pMsg, int cbMsg, ISteamNetworkingCustomSignalingRecvContext * pContext )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->ReceivedP2PCustomSignal(pMsg, cbMsg, pContext);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_GetCertificateRequest( ISteamNetworkingSockets* self, int * pcbBlob, void * pBlob, SteamNetworkingErrMsg & errMsg )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetCertificateRequest(pcbBlob, pBlob, errMsg);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_SetCertificate( ISteamNetworkingSockets* self, const void * pCertificate, int cbCertificate, SteamNetworkingErrMsg & errMsg )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->SetCertificate(pCertificate, cbCertificate, errMsg);
2020-03-25 17:43:23 +00:00
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API void SteamAPI_ISteamNetworkingSockets_ResetIdentity( ISteamNetworkingSockets* self, const SteamNetworkingIdentity * pIdentity )
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->ResetIdentity(pIdentity);
}
2021-12-06 21:51:17 +00:00
2020-09-14 23:53:56 +00:00
STEAMAPI_API void SteamAPI_ISteamNetworkingSockets_RunCallbacks( ISteamNetworkingSockets* self )
{
2022-01-25 20:49:26 +00:00
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->RunCallbacks();
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingSockets_BeginAsyncRequestFakeIP( ISteamNetworkingSockets* self, int nNumPorts )
2022-01-25 20:49:26 +00:00
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->BeginAsyncRequestFakeIP(nNumPorts);
}
STEAMAPI_API void SteamAPI_ISteamNetworkingSockets_GetFakeIP( ISteamNetworkingSockets* self, int idxFirstPort, SteamNetworkingFakeIPResult_t * pInfo )
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetFakeIP(idxFirstPort, pInfo);
}
STEAMAPI_API HSteamListenSocket SteamAPI_ISteamNetworkingSockets_CreateListenSocketP2PFakeIP( ISteamNetworkingSockets* self, int idxFakePort, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->CreateListenSocketP2PFakeIP(idxFakePort, nOptions, pOptions);
}
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_GetRemoteFakeIPForConnection( ISteamNetworkingSockets* self, HSteamNetConnection hConn, SteamNetworkingIPAddr * pOutAddr )
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->GetRemoteFakeIPForConnection(hConn, pOutAddr);
}
STEAMAPI_API ISteamNetworkingFakeUDPPort * SteamAPI_ISteamNetworkingSockets_CreateFakeUDPPort( ISteamNetworkingSockets* self, int idxFakeServerPort )
{
long long test1 = ((char *)self - (char*)get_steam_client()->steam_networking_sockets);
long long test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_networking_sockets);
auto ptr = get_steam_client()->steam_gameserver_networking_sockets;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_networking_sockets;
}
return (ptr)->CreateFakeUDPPort(idxFakeServerPort);
2020-09-14 23:53:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingConnectionCustomSignaling_SendSignal( ISteamNetworkingConnectionCustomSignaling* self, HSteamNetConnection hConn, const SteamNetConnectionInfo_t & info, const void * pMsg, int cbMsg )
2020-03-25 17:43:23 +00:00
{
return self->SendSignal(hConn, info, pMsg, cbMsg);
}
STEAMAPI_API void SteamAPI_ISteamNetworkingConnectionCustomSignaling_Release( ISteamNetworkingConnectionCustomSignaling* self )
{
return self->Release();
}
STEAMAPI_API ISteamNetworkingConnectionCustomSignaling * SteamAPI_ISteamNetworkingCustomSignalingRecvContext_OnConnectRequest( ISteamNetworkingCustomSignalingRecvContext* self, HSteamNetConnection hConn, const SteamNetworkingIdentity & identityPeer )
{
return self->OnConnectRequest(hConn, identityPeer);
}
STEAMAPI_API void SteamAPI_ISteamNetworkingCustomSignalingRecvContext_SendRejectionSignal( ISteamNetworkingCustomSignalingRecvContext* self, const SteamNetworkingIdentity & identityPeer, const void * pMsg, int cbMsg )
{
return self->SendRejectionSignal(identityPeer, pMsg, cbMsg);
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API ISteamNetworkingUtils *SteamAPI_SteamNetworkingUtils_SteamAPI_v003()
{
return (ISteamNetworkingUtils *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingUtils003");
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API ISteamNetworkingUtils *SteamAPI_SteamNetworkingUtils_SteamAPI_v004()
{
return (ISteamNetworkingUtils *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingUtils004");
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworkingUtils *SteamAPI_SteamNetworkingUtils_v003()
{
return (ISteamNetworkingUtils *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingUtils003");
}
STEAMAPI_API SteamNetworkingMessage_t * SteamAPI_ISteamNetworkingUtils_AllocateMessage( ISteamNetworkingUtils* self, int cbAllocateBuffer )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->AllocateMessage(cbAllocateBuffer);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamNetworkingUtils_InitRelayNetworkAccess( ISteamNetworkingUtils* self )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->InitRelayNetworkAccess();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamNetworkingAvailability SteamAPI_ISteamNetworkingUtils_GetRelayNetworkStatus( ISteamNetworkingUtils* self, SteamRelayNetworkStatus_t * pDetails )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->GetRelayNetworkStatus(pDetails);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API float SteamAPI_ISteamNetworkingUtils_GetLocalPingLocation( ISteamNetworkingUtils* self, SteamNetworkPingLocation_t & result )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->GetLocalPingLocation(result);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_EstimatePingTimeBetweenTwoLocations( ISteamNetworkingUtils* self, const SteamNetworkPingLocation_t & location1, const SteamNetworkPingLocation_t & location2 )
2019-04-13 16:21:56 +00:00
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->EstimatePingTimeBetweenTwoLocations(location1, location2);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_EstimatePingTimeFromLocalHost( ISteamNetworkingUtils* self, const SteamNetworkPingLocation_t & remoteLocation )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->EstimatePingTimeFromLocalHost(remoteLocation);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamNetworkingUtils_ConvertPingLocationToString( ISteamNetworkingUtils* self, const SteamNetworkPingLocation_t & location, char * pszBuf, int cchBufSize )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->ConvertPingLocationToString(location, pszBuf, cchBufSize);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_ParsePingLocationString( ISteamNetworkingUtils* self, const char * pszString, SteamNetworkPingLocation_t & result )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->ParsePingLocationString(pszString, result);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_CheckPingDataUpToDate( ISteamNetworkingUtils* self, float flMaxAgeSeconds )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->CheckPingDataUpToDate(flMaxAgeSeconds);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_GetPingToDataCenter( ISteamNetworkingUtils* self, SteamNetworkingPOPID popID, SteamNetworkingPOPID * pViaRelayPoP )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->GetPingToDataCenter(popID, pViaRelayPoP);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_GetDirectPingToPOP( ISteamNetworkingUtils* self, SteamNetworkingPOPID popID )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->GetDirectPingToPOP(popID);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_GetPOPCount( ISteamNetworkingUtils* self )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->GetPOPCount();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_GetPOPList( ISteamNetworkingUtils* self, SteamNetworkingPOPID * list, int nListSz )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->GetPOPList(list, nListSz);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API SteamNetworkingMicroseconds SteamAPI_ISteamNetworkingUtils_GetLocalTimestamp( ISteamNetworkingUtils* self )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->GetLocalTimestamp();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamNetworkingUtils_SetDebugOutputFunction( ISteamNetworkingUtils* self, ESteamNetworkingSocketsDebugOutputType eDetailLevel, FSteamNetworkingSocketsDebugOutput pfnFunc )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->SetDebugOutputFunction(eDetailLevel, pfnFunc);
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_IsFakeIPv4( ISteamNetworkingUtils* self, uint32 nIPv4 )
2022-01-25 20:49:26 +00:00
{
return (get_steam_client()->steam_networking_utils)->IsFakeIPv4(nIPv4);
}
STEAMAPI_API ESteamNetworkingFakeIPType SteamAPI_ISteamNetworkingUtils_GetIPv4FakeIPType( ISteamNetworkingUtils* self, uint32 nIPv4 )
{
return (get_steam_client()->steam_networking_utils)->GetIPv4FakeIPType(nIPv4);
}
STEAMAPI_API EResult SteamAPI_ISteamNetworkingUtils_GetRealIdentityForFakeIP( ISteamNetworkingUtils* self, const SteamNetworkingIPAddr & fakeIP, SteamNetworkingIdentity * pOutRealIdentity )
{
return (get_steam_client()->steam_networking_utils)->GetRealIdentityForFakeIP(fakeIP, pOutRealIdentity);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetGlobalConfigValueInt32( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, int32 val )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetGlobalConfigValueInt32(eValue, val);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetGlobalConfigValueFloat( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, float val )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetGlobalConfigValueFloat(eValue, val);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetGlobalConfigValueString( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, const char * val )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetGlobalConfigValueString(eValue, val);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetGlobalConfigValuePtr( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, void * val )
2020-09-14 23:53:56 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetGlobalConfigValuePtr(eValue, val);
2020-09-14 23:53:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetConnectionConfigValueInt32( ISteamNetworkingUtils* self, HSteamNetConnection hConn, ESteamNetworkingConfigValue eValue, int32 val )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetConnectionConfigValueInt32(hConn, eValue, val);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetConnectionConfigValueFloat( ISteamNetworkingUtils* self, HSteamNetConnection hConn, ESteamNetworkingConfigValue eValue, float val )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetConnectionConfigValueFloat(hConn, eValue, val);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetConnectionConfigValueString( ISteamNetworkingUtils* self, HSteamNetConnection hConn, ESteamNetworkingConfigValue eValue, const char * val )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetConnectionConfigValueString(hConn, eValue, val);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_SteamNetConnectionStatusChanged( ISteamNetworkingUtils* self, FnSteamNetConnectionStatusChanged fnCallback )
2020-09-14 23:53:56 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetGlobalCallback_SteamNetConnectionStatusChanged(fnCallback);
2020-09-14 23:53:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_SteamNetAuthenticationStatusChanged( ISteamNetworkingUtils* self, FnSteamNetAuthenticationStatusChanged fnCallback )
2020-09-14 23:53:56 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetGlobalCallback_SteamNetAuthenticationStatusChanged(fnCallback);
2020-09-14 23:53:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_SteamRelayNetworkStatusChanged( ISteamNetworkingUtils* self, FnSteamRelayNetworkStatusChanged fnCallback )
2020-09-14 23:53:56 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetGlobalCallback_SteamRelayNetworkStatusChanged(fnCallback);
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_FakeIPResult( ISteamNetworkingUtils* self, FnSteamNetworkingFakeIPResult fnCallback )
2022-01-25 20:49:26 +00:00
{
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetGlobalCallback_FakeIPResult(fnCallback);
2020-09-14 23:53:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_MessagesSessionRequest( ISteamNetworkingUtils* self, FnSteamNetworkingMessagesSessionRequest fnCallback )
2020-09-14 23:53:56 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetGlobalCallback_MessagesSessionRequest(fnCallback);
2020-09-14 23:53:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_MessagesSessionFailed( ISteamNetworkingUtils* self, FnSteamNetworkingMessagesSessionFailed fnCallback )
2020-09-14 23:53:56 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetGlobalCallback_MessagesSessionFailed(fnCallback);
2020-09-14 23:53:56 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetConfigValue( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, intptr_t scopeObj, ESteamNetworkingConfigDataType eDataType, const void * pArg )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->SetConfigValue(eValue, eScopeType, scopeObj, eDataType, pArg);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SetConfigValueStruct( ISteamNetworkingUtils* self, const SteamNetworkingConfigValue_t & opt, ESteamNetworkingConfigScope eScopeType, intptr_t scopeObj )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return ((ISteamNetworkingUtils*)get_steam_client()->steam_networking_utils)->SetConfigValueStruct(opt, eScopeType, scopeObj);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API ESteamNetworkingGetConfigValueResult SteamAPI_ISteamNetworkingUtils_GetConfigValue( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, intptr_t scopeObj, ESteamNetworkingConfigDataType * pOutDataType, void * pResult, size_t * cbResult )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->GetConfigValue(eValue, eScopeType, scopeObj, pOutDataType, pResult, cbResult);
2020-03-25 17:43:23 +00:00
}
2022-01-25 20:49:26 +00:00
//TODO: implement this once the GetConfigValueInfo does something other than return 0 or NULL
//STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_GetConfigValueInfo( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, const char ** pOutName, ESteamNetworkingConfigDataType * pOutDataType, ESteamNetworkingConfigScope * pOutScope, ESteamNetworkingConfigValue * pOutNextValue )
2022-01-25 20:49:26 +00:00
STEAMAPI_API const char * SteamAPI_ISteamNetworkingUtils_GetConfigValueInfo( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigDataType * pOutDataType, ESteamNetworkingConfigScope * pOutScope )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
//return (get_steam_client()->steam_networking_utils)->GetConfigValueInfo(eValue, pOutDataType, pOutScope);
return NULL;
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API ESteamNetworkingConfigValue SteamAPI_ISteamNetworkingUtils_GetFirstConfigValue( ISteamNetworkingUtils* self )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->GetFirstConfigValue();
}
STEAMAPI_API ESteamNetworkingConfigValue SteamAPI_ISteamNetworkingUtils_IterateGenericEditableConfigValues( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eCurrent, bool bEnumerateDevVars )
{
return (get_steam_client()->steam_networking_utils)->IterateGenericEditableConfigValues(eCurrent, bEnumerateDevVars);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_ToString( ISteamNetworkingUtils* self, const SteamNetworkingIPAddr & addr, char * buf, uint32 cbBuf, bool bWithPort )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->SteamNetworkingIPAddr_ToString(addr, buf, cbBuf, bWithPort);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_ParseString( ISteamNetworkingUtils* self, SteamNetworkingIPAddr * pAddr, const char * pszStr )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->SteamNetworkingIPAddr_ParseString(pAddr, pszStr);
}
STEAMAPI_API ESteamNetworkingFakeIPType SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_GetFakeIPType( ISteamNetworkingUtils* self, const SteamNetworkingIPAddr & addr )
{
return (get_steam_client()->steam_networking_utils)->SteamNetworkingIPAddr_GetFakeIPType(addr);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamNetworkingUtils_SteamNetworkingIdentity_ToString( ISteamNetworkingUtils* self, const SteamNetworkingIdentity & identity, char * buf, uint32 cbBuf )
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->SteamNetworkingIdentity_ToString(identity, buf, cbBuf);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamNetworkingUtils_SteamNetworkingIdentity_ParseString( ISteamNetworkingUtils* self, SteamNetworkingIdentity * pIdentity, const char * pszStr )
2020-03-25 17:43:23 +00:00
{
2022-01-25 20:49:26 +00:00
return (get_steam_client()->steam_networking_utils)->SteamNetworkingIdentity_ParseString(pIdentity, pszStr);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API ISteamGameServer *SteamAPI_SteamGameServer_v013()
{
return get_steam_client()->GetISteamGameServer(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamGameServer013");
}
2021-12-06 21:51:17 +00:00
STEAMAPI_API ISteamGameServer *SteamAPI_SteamGameServer_v014()
{
return get_steam_client()->GetISteamGameServer(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamGameServer014");
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServer_InitGameServer(intptr_t instancePtr, uint32 unIP, uint16 usGamePort, uint16 usQueryPort, uint32 unFlags, AppId_t nGameAppId, const char * pchVersionString)
2020-03-25 17:43:23 +00:00
{
return ((ISteamGameServer *)instancePtr)->InitGameServer(unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetProduct( ISteamGameServer* self, const char * pszProduct )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetProduct(pszProduct);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetGameDescription( ISteamGameServer* self, const char * pszGameDescription )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetGameDescription(pszGameDescription);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetModDir( ISteamGameServer* self, const char * pszModDir )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetModDir(pszModDir);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetDedicatedServer( ISteamGameServer* self, bool bDedicated )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetDedicatedServer(bDedicated);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_LogOn( ISteamGameServer* self, const char * pszToken )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->LogOn(pszToken);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_LogOnAnonymous( ISteamGameServer* self )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->LogOnAnonymous();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_LogOff( ISteamGameServer* self )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->LogOff();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServer_BLoggedOn( ISteamGameServer* self )
2020-03-25 17:43:23 +00:00
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->BLoggedOn();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServer_BSecure( ISteamGameServer* self )
2020-03-25 17:43:23 +00:00
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->BSecure();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API uint64_steamid SteamAPI_ISteamGameServer_GetSteamID( ISteamGameServer* self )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->GetSteamID().ConvertToUint64();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServer_WasRestartRequested( ISteamGameServer* self )
2020-03-25 17:43:23 +00:00
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->WasRestartRequested();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetMaxPlayerCount( ISteamGameServer* self, int cPlayersMax )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetMaxPlayerCount(cPlayersMax);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetBotPlayerCount( ISteamGameServer* self, int cBotplayers )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetBotPlayerCount(cBotplayers);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetServerName( ISteamGameServer* self, const char * pszServerName )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetServerName(pszServerName);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetMapName( ISteamGameServer* self, const char * pszMapName )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetMapName(pszMapName);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetPasswordProtected( ISteamGameServer* self, bool bPasswordProtected )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetPasswordProtected(bPasswordProtected);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetSpectatorPort( ISteamGameServer* self, uint16 unSpectatorPort )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetSpectatorPort(unSpectatorPort);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetSpectatorServerName( ISteamGameServer* self, const char * pszSpectatorServerName )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetSpectatorServerName(pszSpectatorServerName);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_ClearAllKeyValues( ISteamGameServer* self )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->ClearAllKeyValues();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetKeyValue( ISteamGameServer* self, const char * pKey, const char * pValue )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetKeyValue(pKey, pValue);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetGameTags( ISteamGameServer* self, const char * pchGameTags )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetGameTags(pchGameTags);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetGameData( ISteamGameServer* self, const char * pchGameData )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetGameData(pchGameData);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetRegion( ISteamGameServer* self, const char * pszRegion )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetRegion(pszRegion);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate( ISteamGameServer* self, uint32 unIPClient, const void * pvAuthBlob, uint32 cubAuthBlobSize, CSteamID * pSteamIDUser )
2020-03-25 17:43:23 +00:00
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SendUserConnectAndAuthenticate(unIPClient, pvAuthBlob, cubAuthBlobSize, pSteamIDUser);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate_DEPRECATED( ISteamGameServer* self, uint32 unIPClient, const void * pvAuthBlob, uint32 cubAuthBlobSize, CSteamID * pSteamIDUser )
2021-12-06 21:51:17 +00:00
{
return get_steam_client()->steam_gameserver->SendUserConnectAndAuthenticate(unIPClient, pvAuthBlob, cubAuthBlobSize, pSteamIDUser);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API uint64_steamid SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection( ISteamGameServer* self )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->CreateUnauthenticatedUserConnection().ConvertToUint64();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SendUserDisconnect( ISteamGameServer* self, uint64_steamid steamIDUser )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SendUserDisconnect(steamIDUser);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SendUserDisconnect_DEPRECATED( ISteamGameServer* self, uint64_steamid steamIDUser )
{
return get_steam_client()->steam_gameserver->SendUserDisconnect(steamIDUser);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServer_BUpdateUserData( ISteamGameServer* self, uint64_steamid steamIDUser, const char * pchPlayerName, uint32 uScore )
2020-03-25 17:43:23 +00:00
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->BUpdateUserData(steamIDUser, pchPlayerName, uScore);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetAdvertiseServerActive( ISteamGameServer* self, bool bActive )
{
return get_steam_client()->steam_gameserver->SetAdvertiseServerActive(bActive);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API HAuthTicket SteamAPI_ISteamGameServer_GetAuthSessionTicket( ISteamGameServer* self, void * pTicket, int cbMaxTicket, uint32 * pcbTicket )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->GetAuthSessionTicket(pTicket, cbMaxTicket, pcbTicket);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API EBeginAuthSessionResult SteamAPI_ISteamGameServer_BeginAuthSession( ISteamGameServer* self, const void * pAuthTicket, int cbAuthTicket, uint64_steamid steamID )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->BeginAuthSession(pAuthTicket, cbAuthTicket, steamID);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_EndAuthSession( ISteamGameServer* self, uint64_steamid steamID )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->EndAuthSession(steamID);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_CancelAuthTicket( ISteamGameServer* self, HAuthTicket hAuthTicket )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->CancelAuthTicket(hAuthTicket);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API EUserHasLicenseForAppResult SteamAPI_ISteamGameServer_UserHasLicenseForApp( ISteamGameServer* self, uint64_steamid steamID, AppId_t appID )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->UserHasLicenseForApp(steamID, appID);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServer_RequestUserGroupStatus( ISteamGameServer* self, uint64_steamid steamIDUser, uint64_steamid steamIDGroup )
2020-03-25 17:43:23 +00:00
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->RequestUserGroupStatus(steamIDUser, steamIDGroup);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_GetGameplayStats( ISteamGameServer* self )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->GetGameplayStats();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServer_GetServerReputation( ISteamGameServer* self )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->GetServerReputation();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void *SteamAPI_ISteamGameServer_GetPublicIP( intptr_t instancePtr, void *instancePtr_possible )
2020-03-25 17:43:23 +00:00
{
//abuse call convention rules to get this working.
2020-03-25 17:43:23 +00:00
if (steamclient_has_ipv6_functions()) {
get_steam_client()->steam_gameserver->GetPublicIP_fix((SteamIPAddress_t *)instancePtr);
return (void *)instancePtr;
2020-03-25 17:43:23 +00:00
} else {
return (void *)((ISteamGameServer012 *)instancePtr)->GetPublicIP_old();
2020-03-25 17:43:23 +00:00
}
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServer_HandleIncomingPacket( ISteamGameServer* self, const void * pData, int cbData, uint32 srcIP, uint16 srcPort )
2020-03-25 17:43:23 +00:00
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->HandleIncomingPacket(pData, cbData, srcIP, srcPort);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API int SteamAPI_ISteamGameServer_GetNextOutgoingPacket( ISteamGameServer* self, void * pOut, int cbMaxOut, uint32 * pNetAdr, uint16 * pPort )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->GetNextOutgoingPacket(pOut, cbMaxOut, pNetAdr, pPort);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_EnableHeartbeats( ISteamGameServer* self, bool bActive )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->EnableHeartbeats(bActive);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetHeartbeatInterval( ISteamGameServer* self, int iHeartbeatInterval )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->SetHeartbeatInterval(iHeartbeatInterval);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API void SteamAPI_ISteamGameServer_ForceHeartbeat( ISteamGameServer* self )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->ForceHeartbeat();
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServer_AssociateWithClan( ISteamGameServer* self, uint64_steamid steamIDClan )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->AssociateWithClan(steamIDClan);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility( ISteamGameServer* self, uint64_steamid steamIDNewPlayer )
{
2021-12-06 21:51:17 +00:00
return get_steam_client()->steam_gameserver->ComputeNewPlayerCompatibility(steamIDNewPlayer);
2020-03-25 17:43:23 +00:00
}
STEAMAPI_API ISteamGameServerStats *SteamAPI_SteamGameServerStats_v001()
{
return get_steam_client()->GetISteamGameServerStats(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamGameServerStats001");
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServerStats_RequestUserStats( ISteamGameServerStats* self, uint64_steamid steamIDUser )
{
return self->RequestUserStats(steamIDUser);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_GetUserStat(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, int32 * pData)
2020-03-25 17:43:23 +00:00
{
return ((ISteamGameServerStats *)instancePtr)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_GetUserStat0(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, float * pData)
2020-03-25 17:43:23 +00:00
{
return ((ISteamGameServerStats *)instancePtr)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_GetUserStatInt32( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, int32 * pData )
2020-03-25 17:43:23 +00:00
{
return self->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_GetUserStatFloat( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, float * pData )
2020-03-25 17:43:23 +00:00
{
return self->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_GetUserAchievement( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, bool * pbAchieved )
2020-03-25 17:43:23 +00:00
{
return self->GetUserAchievement(steamIDUser, pchName, pbAchieved);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_SetUserStat(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, int32 nData)
2020-03-25 17:43:23 +00:00
{
return ((ISteamGameServerStats *)instancePtr)->SetUserStat(steamIDUser, pchName, nData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_SetUserStat0(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, float fData)
2020-03-25 17:43:23 +00:00
{
return ((ISteamGameServerStats *)instancePtr)->SetUserStat(steamIDUser, pchName, fData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_SetUserStatInt32( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, int32 nData )
2020-03-25 17:43:23 +00:00
{
return self->SetUserStat(steamIDUser, pchName, nData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_SetUserStatFloat( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, float fData )
2020-03-25 17:43:23 +00:00
{
return self->SetUserStat(steamIDUser, pchName, fData);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, float flCountThisSession, double dSessionLength )
2020-03-25 17:43:23 +00:00
{
return self->UpdateUserAvgRateStat(steamIDUser, pchName, flCountThisSession, dSessionLength);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_SetUserAchievement( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName )
2020-03-25 17:43:23 +00:00
{
return self->SetUserAchievement(steamIDUser, pchName);
}
STEAMAPI_API steam_bool SteamAPI_ISteamGameServerStats_ClearUserAchievement( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName )
2020-03-25 17:43:23 +00:00
{
return self->ClearUserAchievement(steamIDUser, pchName);
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServerStats_StoreUserStats( ISteamGameServerStats* self, uint64_steamid steamIDUser )
{
return self->StoreUserStats(steamIDUser);
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API void SteamAPI_ISteamNetworkingFakeUDPPort_DestroyFakeUDPPort( ISteamNetworkingFakeUDPPort* self )
{
return self->DestroyFakeUDPPort();
}
STEAMAPI_API EResult SteamAPI_ISteamNetworkingFakeUDPPort_SendMessageToFakeIP( ISteamNetworkingFakeUDPPort* self, const SteamNetworkingIPAddr & remoteAddress, const void * pData, uint32 cbData, int nSendFlags )
{
return self->SendMessageToFakeIP(remoteAddress, pData, cbData, nSendFlags);
}
STEAMAPI_API int SteamAPI_ISteamNetworkingFakeUDPPort_ReceiveMessages( ISteamNetworkingFakeUDPPort* self, SteamNetworkingMessage_t ** ppOutMessages, int nMaxMessages )
{
return self->ReceiveMessages(ppOutMessages, nMaxMessages);
}
STEAMAPI_API void SteamAPI_ISteamNetworkingFakeUDPPort_ScheduleCleanup( ISteamNetworkingFakeUDPPort* self, const SteamNetworkingIPAddr & remoteAddress )
{
return self->ScheduleCleanup(remoteAddress);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API steam_bool SteamAPI_SteamIPAddress_t_IsSet( SteamIPAddress_t* self )
2020-03-25 17:43:23 +00:00
{
return self->IsSet();
}
STEAMAPI_API void SteamAPI_MatchMakingKeyValuePair_t_Construct( MatchMakingKeyValuePair_t* self )
{
new(self) MatchMakingKeyValuePair_t();
}
STEAMAPI_API void SteamAPI_servernetadr_t_Construct( servernetadr_t* self )
{
new(self) servernetadr_t();
}
STEAMAPI_API void SteamAPI_servernetadr_t_Init( servernetadr_t* self, unsigned int ip, uint16 usQueryPort, uint16 usConnectionPort )
{
return self->Init(ip, usQueryPort, usConnectionPort);
}
STEAMAPI_API uint16 SteamAPI_servernetadr_t_GetQueryPort( servernetadr_t* self )
{
return self->GetQueryPort();
}
STEAMAPI_API void SteamAPI_servernetadr_t_SetQueryPort( servernetadr_t* self, uint16 usPort )
{
return self->SetQueryPort(usPort);
}
STEAMAPI_API uint16 SteamAPI_servernetadr_t_GetConnectionPort( servernetadr_t* self )
{
return self->GetConnectionPort();
}
STEAMAPI_API void SteamAPI_servernetadr_t_SetConnectionPort( servernetadr_t* self, uint16 usPort )
{
return self->SetConnectionPort(usPort);
}
STEAMAPI_API uint32 SteamAPI_servernetadr_t_GetIP( servernetadr_t* self )
{
return self->GetIP();
}
STEAMAPI_API void SteamAPI_servernetadr_t_SetIP( servernetadr_t* self, uint32 unIP )
{
return self->SetIP(unIP);
}
STEAMAPI_API const char * SteamAPI_servernetadr_t_GetConnectionAddressString( servernetadr_t* self )
{
return self->GetConnectionAddressString();
}
STEAMAPI_API const char * SteamAPI_servernetadr_t_GetQueryAddressString( servernetadr_t* self )
{
return self->GetQueryAddressString();
}
STEAMAPI_API steam_bool SteamAPI_servernetadr_t_IsLessThan( servernetadr_t* self, const servernetadr_t & netadr )
2020-03-25 17:43:23 +00:00
{
return self->operator<(netadr);
}
STEAMAPI_API void SteamAPI_servernetadr_t_Assign( servernetadr_t* self, const servernetadr_t & that )
{
return self->operator=(that);
}
STEAMAPI_API void SteamAPI_gameserveritem_t_Construct( gameserveritem_t* self )
{
new(self) gameserveritem_t();
}
STEAMAPI_API const char * SteamAPI_gameserveritem_t_GetName( gameserveritem_t* self )
{
return self->GetName();
}
STEAMAPI_API void SteamAPI_gameserveritem_t_SetName( gameserveritem_t* self, const char * pName )
{
return self->SetName(pName);
}
STEAMAPI_API void SteamAPI_SteamNetworkingIPAddr_Clear( SteamNetworkingIPAddr* self )
{
return self->Clear();
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIPAddr_IsIPv6AllZeros( SteamNetworkingIPAddr* self )
2020-03-25 17:43:23 +00:00
{
return self->IsIPv6AllZeros();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIPAddr_SetIPv6( SteamNetworkingIPAddr* self, const uint8 * ipv6, uint16 nPort )
{
return self->SetIPv6(ipv6, nPort);
}
STEAMAPI_API void SteamAPI_SteamNetworkingIPAddr_SetIPv4( SteamNetworkingIPAddr* self, uint32 nIP, uint16 nPort )
{
return self->SetIPv4(nIP, nPort);
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIPAddr_IsIPv4( SteamNetworkingIPAddr* self )
2020-03-25 17:43:23 +00:00
{
return self->IsIPv4();
}
STEAMAPI_API uint32 SteamAPI_SteamNetworkingIPAddr_GetIPv4( SteamNetworkingIPAddr* self )
{
return self->GetIPv4();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIPAddr_SetIPv6LocalHost( SteamNetworkingIPAddr* self, uint16 nPort )
{
return self->SetIPv6LocalHost(nPort);
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIPAddr_IsLocalHost( SteamNetworkingIPAddr* self )
2020-03-25 17:43:23 +00:00
{
return self->IsLocalHost();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIPAddr_ToString( SteamNetworkingIPAddr* self, char * buf, uint32 cbBuf, bool bWithPort )
{
return self->ToString(buf, cbBuf, bWithPort);
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIPAddr_ParseString( SteamNetworkingIPAddr* self, const char * pszStr )
2020-03-25 17:43:23 +00:00
{
return self->ParseString(pszStr);
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIPAddr_IsEqualTo( SteamNetworkingIPAddr* self, const SteamNetworkingIPAddr & x )
2020-03-25 17:43:23 +00:00
{
return self->operator==(x);
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API ESteamNetworkingFakeIPType SteamAPI_SteamNetworkingIPAddr_GetFakeIPType( SteamNetworkingIPAddr* self )
{
return self->GetFakeIPType();
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIPAddr_IsFakeIP( SteamNetworkingIPAddr* self )
2022-01-25 20:49:26 +00:00
{
return self->IsFakeIP();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_Clear( SteamNetworkingIdentity* self )
{
return self->Clear();
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIdentity_IsInvalid( SteamNetworkingIdentity* self )
2020-03-25 17:43:23 +00:00
{
return self->IsInvalid();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetSteamID( SteamNetworkingIdentity* self, uint64_steamid steamID )
{
return self->SetSteamID(steamID);
}
STEAMAPI_API uint64_steamid SteamAPI_SteamNetworkingIdentity_GetSteamID( SteamNetworkingIdentity* self )
{
return self->GetSteamID().ConvertToUint64();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetSteamID64( SteamNetworkingIdentity* self, uint64 steamID )
{
return self->SetSteamID64(steamID);
}
STEAMAPI_API uint64 SteamAPI_SteamNetworkingIdentity_GetSteamID64( SteamNetworkingIdentity* self )
{
return self->GetSteamID64();
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIdentity_SetXboxPairwiseID( SteamNetworkingIdentity* self, const char * pszString )
2020-03-25 17:43:23 +00:00
{
return false;//self->SetXboxPairwiseID(pszString);
}
STEAMAPI_API const char * SteamAPI_SteamNetworkingIdentity_GetXboxPairwiseID( SteamNetworkingIdentity* self )
{
return "";//self->GetXboxPairwiseID();
}
2021-01-18 03:46:00 +00:00
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetPSNID( SteamNetworkingIdentity* self, uint64 id )
{
}
STEAMAPI_API uint64 SteamAPI_SteamNetworkingIdentity_GetPSNID( SteamNetworkingIdentity* self )
{
return 0;
}
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetStadiaID( SteamNetworkingIdentity* self, uint64 id )
{
}
STEAMAPI_API uint64 SteamAPI_SteamNetworkingIdentity_GetStadiaID( SteamNetworkingIdentity* self )
{
return 0;
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetIPAddr( SteamNetworkingIdentity* self, const SteamNetworkingIPAddr & addr )
{
return self->SetIPAddr(addr);
}
STEAMAPI_API const SteamNetworkingIPAddr * SteamAPI_SteamNetworkingIdentity_GetIPAddr( SteamNetworkingIdentity* self )
{
return self->GetIPAddr();
}
2022-01-25 20:49:26 +00:00
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetIPv4Addr( SteamNetworkingIdentity* self, uint32 nIPv4, uint16 nPort )
{
SteamNetworkingIPAddr addr = {};
addr.SetIPv4(nIPv4, nPort);
self->SetIPAddr(addr);
}
STEAMAPI_API uint32 SteamAPI_SteamNetworkingIdentity_GetIPv4( SteamNetworkingIdentity* self )
{
return self->GetIPAddr()->GetIPv4();
}
STEAMAPI_API ESteamNetworkingFakeIPType SteamAPI_SteamNetworkingIdentity_GetFakeIPType( SteamNetworkingIdentity* self )
{
//return self->GetFakeIPType();
return self->GetIPAddr()->GetFakeIPType();
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIdentity_IsFakeIP( SteamNetworkingIdentity* self )
2022-01-25 20:49:26 +00:00
{
return self->GetIPAddr()->IsFakeIP();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetLocalHost( SteamNetworkingIdentity* self )
{
return self->SetLocalHost();
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIdentity_IsLocalHost( SteamNetworkingIdentity* self )
2020-03-25 17:43:23 +00:00
{
return self->IsLocalHost();
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIdentity_SetGenericString( SteamNetworkingIdentity* self, const char * pszString )
2020-03-25 17:43:23 +00:00
{
return self->SetGenericString(pszString);
}
STEAMAPI_API const char * SteamAPI_SteamNetworkingIdentity_GetGenericString( SteamNetworkingIdentity* self )
{
return self->GetGenericString();
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIdentity_SetGenericBytes( SteamNetworkingIdentity* self, const void * data, uint32 cbLen )
2020-03-25 17:43:23 +00:00
{
return self->SetGenericBytes(data, cbLen);
}
STEAMAPI_API const uint8 * SteamAPI_SteamNetworkingIdentity_GetGenericBytes( SteamNetworkingIdentity* self, int & cbLen )
{
return self->GetGenericBytes(cbLen);
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIdentity_IsEqualTo( SteamNetworkingIdentity* self, const SteamNetworkingIdentity & x )
2020-03-25 17:43:23 +00:00
{
return self->operator==(x);
}
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_ToString( SteamNetworkingIdentity* self, char * buf, uint32 cbBuf )
{
return self->ToString(buf, cbBuf);
}
STEAMAPI_API steam_bool SteamAPI_SteamNetworkingIdentity_ParseString( SteamNetworkingIdentity* self, const char * pszStr )
2020-03-25 17:43:23 +00:00
{
return self->ParseString(pszStr);
}
STEAMAPI_API void SteamAPI_SteamNetworkingMessage_t_Release( SteamNetworkingMessage_t* self )
{
return self->Release();
}
2020-09-14 23:53:56 +00:00
STEAMAPI_API void SteamAPI_SteamNetworkingConfigValue_t_SetInt32( SteamNetworkingConfigValue_t* self, ESteamNetworkingConfigValue eVal, int32_t data )
{
return self->SetInt32(eVal, data);
}
STEAMAPI_API void SteamAPI_SteamNetworkingConfigValue_t_SetInt64( SteamNetworkingConfigValue_t* self, ESteamNetworkingConfigValue eVal, int64_t data )
{
return self->SetInt64(eVal, data);
}
STEAMAPI_API void SteamAPI_SteamNetworkingConfigValue_t_SetFloat( SteamNetworkingConfigValue_t* self, ESteamNetworkingConfigValue eVal, float data )
{
return self->SetFloat(eVal, data);
}
STEAMAPI_API void SteamAPI_SteamNetworkingConfigValue_t_SetPtr( SteamNetworkingConfigValue_t* self, ESteamNetworkingConfigValue eVal, void * data )
{
return self->SetPtr(eVal, data);
}
STEAMAPI_API void SteamAPI_SteamNetworkingConfigValue_t_SetString( SteamNetworkingConfigValue_t* self, ESteamNetworkingConfigValue eVal, const char * data )
{
return self->SetString(eVal, data);
}
2020-06-14 20:04:43 +00:00
STEAMAPI_API const char * SteamAPI_SteamNetworkingPOPIDRender_c_str( SteamNetworkingPOPIDRender* self )
{
return self->c_str();
}
STEAMAPI_API const char * SteamAPI_SteamNetworkingIdentityRender_c_str( SteamNetworkingIdentityRender* self )
{
return self->c_str();
}
STEAMAPI_API const char * SteamAPI_SteamNetworkingIPAddrRender_c_str( SteamNetworkingIPAddrRender* self )
{
return self->c_str();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_SteamDatagramHostedAddress_Clear( SteamDatagramHostedAddress* self )
{
return self->Clear();
}
STEAMAPI_API SteamNetworkingPOPID SteamAPI_SteamDatagramHostedAddress_GetPopID( SteamDatagramHostedAddress* self )
{
return self->GetPopID();
}
STEAMAPI_API void SteamAPI_SteamDatagramHostedAddress_SetDevAddress( SteamDatagramHostedAddress* self, uint32 nIP, uint16 nPort, SteamNetworkingPOPID popid )
{
return self->SetDevAddress(nIP, nPort, popid);
}
#endif