2019-04-14 00:21:56 +08: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/>. */
|
|
|
|
|
|
|
|
#include "dll.h"
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HSteamPipe SteamAPI_ISteamClient_CreateSteamPipe(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->CreateSteamPipe();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamClient_BReleaseSteamPipe(intptr_t instancePtr, HSteamPipe hSteamPipe)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->BReleaseSteamPipe(hSteamPipe);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HSteamUser SteamAPI_ISteamClient_ConnectToGlobalUser(intptr_t instancePtr, HSteamPipe hSteamPipe)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->ConnectToGlobalUser(hSteamPipe);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HSteamUser SteamAPI_ISteamClient_CreateLocalUser(intptr_t instancePtr, HSteamPipe * phSteamPipe, EAccountType eAccountType)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->CreateLocalUser(phSteamPipe, eAccountType);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamClient_ReleaseUser(intptr_t instancePtr, HSteamPipe hSteamPipe, HSteamUser hUser)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->ReleaseUser(hSteamPipe, hUser);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamUser * SteamAPI_ISteamClient_GetISteamUser(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamUser(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamGameServer * SteamAPI_ISteamClient_GetISteamGameServer(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamGameServer(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamClient_SetLocalIPBinding(intptr_t instancePtr, uint32 unIP, uint16 usPort)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-12-10 01:49:55 +08: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-14 00:21:56 +08:00
|
|
|
return get_steam_client()->SetLocalIPBinding(unIP, usPort);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamFriends * SteamAPI_ISteamClient_GetISteamFriends(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamFriends(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamUtils * SteamAPI_ISteamClient_GetISteamUtils(intptr_t instancePtr, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamUtils(hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamMatchmaking * SteamAPI_ISteamClient_GetISteamMatchmaking(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamMatchmaking(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamMatchmakingServers * SteamAPI_ISteamClient_GetISteamMatchmakingServers(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamMatchmakingServers(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void * SteamAPI_ISteamClient_GetISteamGenericInterface(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamGenericInterface(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamUserStats * SteamAPI_ISteamClient_GetISteamUserStats(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamUserStats(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamGameServerStats * SteamAPI_ISteamClient_GetISteamGameServerStats(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamGameServerStats(hSteamuser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamApps * SteamAPI_ISteamClient_GetISteamApps(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamApps(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamNetworking * SteamAPI_ISteamClient_GetISteamNetworking(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamNetworking(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamRemoteStorage * SteamAPI_ISteamClient_GetISteamRemoteStorage(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamRemoteStorage(hSteamuser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamScreenshots * SteamAPI_ISteamClient_GetISteamScreenshots(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamScreenshots(hSteamuser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamGameSearch * SteamAPI_ISteamClient_GetISteamGameSearch(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamGameSearch(hSteamuser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamClient_GetIPCCallCount(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetIPCCallCount();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamClient_SetWarningMessageHook(intptr_t instancePtr, SteamAPIWarningMessageHook_t pFunction)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->SetWarningMessageHook(pFunction);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamClient_BShutdownIfAllPipesClosed(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->BShutdownIfAllPipesClosed();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamHTTP * SteamAPI_ISteamClient_GetISteamHTTP(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamHTTP(hSteamuser,hSteamPipe,pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void *SteamAPI_ISteamClient_GetISteamUnifiedMessages(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->DEPRECATED_GetISteamUnifiedMessages(hSteamuser,hSteamPipe,pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamController * SteamAPI_ISteamClient_GetISteamController(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamController(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamUGC * SteamAPI_ISteamClient_GetISteamUGC(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamUGC(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamAppList * SteamAPI_ISteamClient_GetISteamAppList(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamAppList(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamMusic * SteamAPI_ISteamClient_GetISteamMusic(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamMusic(hSteamuser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamMusicRemote * SteamAPI_ISteamClient_GetISteamMusicRemote(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamMusicRemote(hSteamuser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamHTMLSurface * SteamAPI_ISteamClient_GetISteamHTMLSurface(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamHTMLSurface(hSteamuser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamInventory * SteamAPI_ISteamClient_GetISteamInventory(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamInventory(hSteamuser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamVideo * SteamAPI_ISteamClient_GetISteamVideo(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamVideo(hSteamuser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamParentalSettings * SteamAPI_ISteamClient_GetISteamParentalSettings(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamParentalSettings(hSteamuser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamInput * SteamAPI_ISteamClient_GetISteamInput(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamInput(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamParties * SteamAPI_ISteamClient_GetISteamParties(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamParties(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class ISteamRemotePlay * SteamAPI_ISteamClient_GetISteamRemotePlay(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return get_steam_client()->GetISteamRemotePlay(hSteamUser, hSteamPipe, pchVersion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HSteamUser SteamAPI_ISteamUser_GetHSteamUser(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetHSteamUser();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUser_BLoggedOn(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->BLoggedOn();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamUser_GetSteamID(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetSteamID().ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamUser_InitiateGameConnection(intptr_t instancePtr, void * pAuthBlob, int cbMaxAuthBlob, class CSteamID steamIDGameServer, uint32 unIPServer, uint16 usPortServer, bool bSecure)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->InitiateGameConnection(pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUser_TerminateGameConnection(intptr_t instancePtr, uint32 unIPServer, uint16 usPortServer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->TerminateGameConnection(unIPServer, usPortServer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUser_TrackAppUsageEvent(intptr_t instancePtr, class CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->TrackAppUsageEvent(gameID, eAppUsageEvent, pchExtraInfo);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUser_GetUserDataFolder(intptr_t instancePtr, char * pchBuffer, int cubBuffer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetUserDataFolder(pchBuffer, cubBuffer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUser_StartVoiceRecording(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->StartVoiceRecording();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUser_StopVoiceRecording(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->StopVoiceRecording();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EVoiceResult SteamAPI_ISteamUser_GetAvailableVoice(intptr_t instancePtr, uint32 * pcbCompressed, uint32 * pcbUncompressed_Deprecated, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetAvailableVoice(pcbCompressed, pcbUncompressed_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EVoiceResult SteamAPI_ISteamUser_GetVoice(intptr_t instancePtr, 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-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetVoice(bWantCompressed, pDestBuffer, cbDestBufferSize, nBytesWritten, bWantUncompressed_Deprecated, pUncompressedDestBuffer_Deprecated, cbUncompressedDestBufferSize_Deprecated, nUncompressBytesWritten_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EVoiceResult SteamAPI_ISteamUser_DecompressVoice(intptr_t instancePtr, const void * pCompressed, uint32 cbCompressed, void * pDestBuffer, uint32 cbDestBufferSize, uint32 * nBytesWritten, uint32 nDesiredSampleRate)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->DecompressVoice(pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, nBytesWritten, nDesiredSampleRate);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUser_GetVoiceOptimalSampleRate(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetVoiceOptimalSampleRate();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HAuthTicket SteamAPI_ISteamUser_GetAuthSessionTicket(intptr_t instancePtr, void * pTicket, int cbMaxTicket, uint32 * pcbTicket)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetAuthSessionTicket(pTicket, cbMaxTicket, pcbTicket);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EBeginAuthSessionResult SteamAPI_ISteamUser_BeginAuthSession(intptr_t instancePtr, const void * pAuthTicket, int cbAuthTicket, class CSteamID steamID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->BeginAuthSession(pAuthTicket, cbAuthTicket, steamID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUser_EndAuthSession(intptr_t instancePtr, class CSteamID steamID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->EndAuthSession(steamID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUser_CancelAuthTicket(intptr_t instancePtr, HAuthTicket hAuthTicket)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->CancelAuthTicket(hAuthTicket);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EUserHasLicenseForAppResult SteamAPI_ISteamUser_UserHasLicenseForApp(intptr_t instancePtr, class CSteamID steamID, AppId_t appID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->UserHasLicenseForApp(steamID, appID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUser_BIsBehindNAT(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->BIsBehindNAT();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUser_AdvertiseGame(intptr_t instancePtr, class CSteamID steamIDGameServer, uint32 unIPServer, uint16 usPortServer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->AdvertiseGame(steamIDGameServer, unIPServer, usPortServer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_RequestEncryptedAppTicket(intptr_t instancePtr, void * pDataToInclude, int cbDataToInclude)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->RequestEncryptedAppTicket(pDataToInclude, cbDataToInclude);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUser_GetEncryptedAppTicket(intptr_t instancePtr, void * pTicket, int cbMaxTicket, uint32 * pcbTicket)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetEncryptedAppTicket(pTicket, cbMaxTicket, pcbTicket);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamUser_GetGameBadgeLevel(intptr_t instancePtr, int nSeries, bool bFoil)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetGameBadgeLevel(nSeries, bFoil);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamUser_GetPlayerSteamLevel(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetPlayerSteamLevel();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_RequestStoreAuthURL(intptr_t instancePtr, const char * pchRedirectURL)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->RequestStoreAuthURL(pchRedirectURL);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUser_BIsPhoneVerified(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->BIsPhoneVerified();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUser_BIsTwoFactorEnabled(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->BIsTwoFactorEnabled();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUser_BIsPhoneIdentifying(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->BIsPhoneIdentifying();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUser_BIsPhoneRequiringVerification(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->BIsPhoneRequiringVerification();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_GetMarketEligibility(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetMarketEligibility();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_GetDurationControl(intptr_t instancePtr)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user)->GetDurationControl();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetPersonaName(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetPersonaName();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_SetPersonaName(intptr_t instancePtr, const char * pchPersonaName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->SetPersonaName(pchPersonaName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EPersonaState SteamAPI_ISteamFriends_GetPersonaState(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetPersonaState();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendCount(intptr_t instancePtr, int iFriendFlags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendCount(iFriendFlags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamFriends_GetFriendByIndex(intptr_t instancePtr, int iFriend, int iFriendFlags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendByIndex(iFriend, iFriendFlags).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EFriendRelationship SteamAPI_ISteamFriends_GetFriendRelationship(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendRelationship(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EPersonaState SteamAPI_ISteamFriends_GetFriendPersonaState(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendPersonaState(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendPersonaName(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendPersonaName(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_GetFriendGamePlayed(intptr_t instancePtr, class CSteamID steamIDFriend, struct FriendGameInfo_t * pFriendGameInfo)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendGamePlayed(steamIDFriend, pFriendGameInfo);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendPersonaNameHistory(intptr_t instancePtr, class CSteamID steamIDFriend, int iPersonaName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendPersonaNameHistory(steamIDFriend, iPersonaName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendSteamLevel(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendSteamLevel(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetPlayerNickname(intptr_t instancePtr, class CSteamID steamIDPlayer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetPlayerNickname(steamIDPlayer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendsGroupCount(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendsGroupCount();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API FriendsGroupID_t SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex(intptr_t instancePtr, int iFG)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendsGroupIDByIndex(iFG);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendsGroupName(intptr_t instancePtr, FriendsGroupID_t friendsGroupID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendsGroupName(friendsGroupID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendsGroupMembersCount(intptr_t instancePtr, FriendsGroupID_t friendsGroupID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendsGroupMembersCount(friendsGroupID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamFriends_GetFriendsGroupMembersList(intptr_t instancePtr, FriendsGroupID_t friendsGroupID, class CSteamID * pOutSteamIDMembers, int nMembersCount)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendsGroupMembersList(friendsGroupID, pOutSteamIDMembers, nMembersCount);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_HasFriend(intptr_t instancePtr, class CSteamID steamIDFriend, int iFriendFlags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->HasFriend(steamIDFriend, iFriendFlags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanCount(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetClanCount();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamFriends_GetClanByIndex(intptr_t instancePtr, int iClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetClanByIndex(iClan).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetClanName(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetClanName(steamIDClan);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetClanTag(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetClanTag(steamIDClan);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_GetClanActivityCounts(intptr_t instancePtr, class CSteamID steamIDClan, int * pnOnline, int * pnInGame, int * pnChatting)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetClanActivityCounts(steamIDClan, pnOnline, pnInGame, pnChatting);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_DownloadClanActivityCounts(intptr_t instancePtr, class CSteamID * psteamIDClans, int cClansToRequest)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->DownloadClanActivityCounts(psteamIDClans, cClansToRequest);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendCountFromSource(intptr_t instancePtr, class CSteamID steamIDSource)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendCountFromSource(steamIDSource);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamFriends_GetFriendFromSourceByIndex(intptr_t instancePtr, class CSteamID steamIDSource, int iFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendFromSourceByIndex(steamIDSource, iFriend).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_IsUserInSource(intptr_t instancePtr, class CSteamID steamIDUser, class CSteamID steamIDSource)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->IsUserInSource(steamIDUser, steamIDSource);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamFriends_SetInGameVoiceSpeaking(intptr_t instancePtr, class CSteamID steamIDUser, bool bSpeaking)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->SetInGameVoiceSpeaking(steamIDUser, bSpeaking);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlay(intptr_t instancePtr, const char * pchDialog)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->ActivateGameOverlay(pchDialog);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayToUser(intptr_t instancePtr, const char * pchDialog, class CSteamID steamID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->ActivateGameOverlayToUser(pchDialog, steamID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage(intptr_t instancePtr, const char * pchURL, EActivateGameOverlayToWebPageMode eMode)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->ActivateGameOverlayToWebPage(pchURL, eMode);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayToStore(intptr_t instancePtr, AppId_t nAppID, EOverlayToStoreFlag eFlag)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->ActivateGameOverlayToStore(nAppID, eFlag);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamFriends_SetPlayedWith(intptr_t instancePtr, class CSteamID steamIDUserPlayedWith)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->SetPlayedWith(steamIDUserPlayedWith);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog(intptr_t instancePtr, class CSteamID steamIDLobby)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->ActivateGameOverlayInviteDialog(steamIDLobby);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetSmallFriendAvatar(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetSmallFriendAvatar(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetMediumFriendAvatar(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetMediumFriendAvatar(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetLargeFriendAvatar(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetLargeFriendAvatar(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_RequestUserInformation(intptr_t instancePtr, class CSteamID steamIDUser, bool bRequireNameOnly)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->RequestUserInformation(steamIDUser, bRequireNameOnly);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_RequestClanOfficerList(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->RequestClanOfficerList(steamIDClan);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamFriends_GetClanOwner(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetClanOwner(steamIDClan).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanOfficerCount(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetClanOfficerCount(steamIDClan);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamFriends_GetClanOfficerByIndex(intptr_t instancePtr, class CSteamID steamIDClan, int iOfficer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetClanOfficerByIndex(steamIDClan, iOfficer).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamFriends_GetUserRestrictions(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetUserRestrictions();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_SetRichPresence(intptr_t instancePtr, const char * pchKey, const char * pchValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->SetRichPresence(pchKey, pchValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamFriends_ClearRichPresence(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->ClearRichPresence();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendRichPresence(intptr_t instancePtr, class CSteamID steamIDFriend, const char * pchKey)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendRichPresence(steamIDFriend, pchKey);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendRichPresenceKeyCount(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex(intptr_t instancePtr, class CSteamID steamIDFriend, int iKey)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendRichPresenceKeyByIndex(steamIDFriend, iKey);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamFriends_RequestFriendRichPresence(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->RequestFriendRichPresence(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_InviteUserToGame(intptr_t instancePtr, class CSteamID steamIDFriend, const char * pchConnectString)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->InviteUserToGame(steamIDFriend, pchConnectString);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetCoplayFriendCount(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetCoplayFriendCount();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamFriends_GetCoplayFriend(intptr_t instancePtr, int iCoplayFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetCoplayFriend(iCoplayFriend).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendCoplayTime(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendCoplayTime(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API AppId_t SteamAPI_ISteamFriends_GetFriendCoplayGame(intptr_t instancePtr, class CSteamID steamIDFriend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendCoplayGame(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_JoinClanChatRoom(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->JoinClanChatRoom(steamIDClan);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_LeaveClanChatRoom(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->LeaveClanChatRoom(steamIDClan);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanChatMemberCount(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetClanChatMemberCount(steamIDClan);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamFriends_GetChatMemberByIndex(intptr_t instancePtr, class CSteamID steamIDClan, int iUser)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetChatMemberByIndex(steamIDClan, iUser).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_SendClanChatMessage(intptr_t instancePtr, class CSteamID steamIDClanChat, const char * pchText)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->SendClanChatMessage(steamIDClanChat, pchText);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanChatMessage(intptr_t instancePtr, class CSteamID steamIDClanChat, int iMessage, void * prgchText, int cchTextMax, EChatEntryType * peChatEntryType, class CSteamID * psteamidChatter)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetClanChatMessage(steamIDClanChat, iMessage, prgchText, cchTextMax, peChatEntryType, psteamidChatter);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_IsClanChatAdmin(intptr_t instancePtr, class CSteamID steamIDClanChat, class CSteamID steamIDUser)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->IsClanChatAdmin(steamIDClanChat, steamIDUser);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam(intptr_t instancePtr, class CSteamID steamIDClanChat)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->IsClanChatWindowOpenInSteam(steamIDClanChat);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_OpenClanChatWindowInSteam(intptr_t instancePtr, class CSteamID steamIDClanChat)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->OpenClanChatWindowInSteam(steamIDClanChat);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_CloseClanChatWindowInSteam(intptr_t instancePtr, class CSteamID steamIDClanChat)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->CloseClanChatWindowInSteam(steamIDClanChat);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_SetListenForFriendsMessages(intptr_t instancePtr, bool bInterceptEnabled)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->SetListenForFriendsMessages(bInterceptEnabled);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_ReplyToFriendMessage(intptr_t instancePtr, class CSteamID steamIDFriend, const char * pchMsgToSend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->ReplyToFriendMessage(steamIDFriend, pchMsgToSend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendMessage(intptr_t instancePtr, class CSteamID steamIDFriend, int iMessageID, void * pvData, int cubData, EChatEntryType * peChatEntryType)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFriendMessage(steamIDFriend, iMessageID, pvData, cubData, peChatEntryType);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_GetFollowerCount(intptr_t instancePtr, class CSteamID steamID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetFollowerCount(steamID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_IsFollowing(intptr_t instancePtr, class CSteamID steamID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->IsFollowing(steamID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_EnumerateFollowingList(intptr_t instancePtr, uint32 unStartIndex)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->EnumerateFollowingList(unStartIndex);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_IsClanPublic(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->IsClanPublic(steamIDClan);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamFriends_IsClanOfficialGameGroup(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->IsClanOfficialGameGroup(steamIDClan);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_friends)->GetNumChatsWithUnreadPriorityMessages();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetSecondsSinceAppActive(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetSecondsSinceAppActive();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetSecondsSinceComputerActive();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EUniverse SteamAPI_ISteamUtils_GetConnectedUniverse(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetConnectedUniverse();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetServerRealTime(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetServerRealTime();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamUtils_GetIPCountry(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetIPCountry();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_GetImageSize(intptr_t instancePtr, int iImage, uint32 * pnWidth, uint32 * pnHeight)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetImageSize(iImage, pnWidth, pnHeight);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_GetImageRGBA(intptr_t instancePtr, int iImage, uint8 * pubDest, int nDestBufferSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetImageRGBA(iImage, pubDest, nDestBufferSize);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_GetCSERIPPort(intptr_t instancePtr, uint32 * unIP, uint16 * usPort)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetCSERIPPort(unIP, usPort);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint8 SteamAPI_ISteamUtils_GetCurrentBatteryPower(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetCurrentBatteryPower();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetAppID(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetAppID();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUtils_SetOverlayNotificationPosition(intptr_t instancePtr, ENotificationPosition eNotificationPosition)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetOverlayNotificationPosition(eNotificationPosition);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_IsAPICallCompleted(intptr_t instancePtr, SteamAPICall_t hSteamAPICall, bool * pbFailed)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->IsAPICallCompleted(hSteamAPICall, pbFailed);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ESteamAPICallFailure SteamAPI_ISteamUtils_GetAPICallFailureReason(intptr_t instancePtr, SteamAPICall_t hSteamAPICall)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetAPICallFailureReason(hSteamAPICall);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_GetAPICallResult(intptr_t instancePtr, SteamAPICall_t hSteamAPICall, void * pCallback, int cubCallback, int iCallbackExpected, bool * pbFailed)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetAPICallResult(hSteamAPICall, pCallback, cubCallback, iCallbackExpected, pbFailed);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetIPCCallCount(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetIPCCallCount();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUtils_SetWarningMessageHook(intptr_t instancePtr, SteamAPIWarningMessageHook_t pFunction)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetWarningMessageHook(pFunction);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_IsOverlayEnabled(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->IsOverlayEnabled();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_BOverlayNeedsPresent(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->BOverlayNeedsPresent();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUtils_CheckFileSignature(intptr_t instancePtr, const char * szFileName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->CheckFileSignature(szFileName);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_ShowGamepadTextInput(intptr_t instancePtr, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char * pchDescription, uint32 unCharMax, const char * pchExistingText)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->ShowGamepadTextInput(eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetEnteredGamepadTextLength(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetEnteredGamepadTextLength();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_GetEnteredGamepadTextInput(intptr_t instancePtr, char * pchText, uint32 cchText)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetEnteredGamepadTextInput(pchText, cchText);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamUtils_GetSteamUILanguage(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetSteamUILanguage();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_IsSteamRunningInVR(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->IsSteamRunningInVR();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUtils_SetOverlayNotificationInset(intptr_t instancePtr, int nHorizontalInset, int nVerticalInset)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetOverlayNotificationInset(nHorizontalInset, nVerticalInset);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_IsSteamInBigPictureMode(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->IsSteamInBigPictureMode();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUtils_StartVRDashboard(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->StartVRDashboard();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->IsVRHeadsetStreamingEnabled();
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled(intptr_t instancePtr, bool bEnabled)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-07-28 21:02:09 +08:00
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetVRHeadsetStreamingEnabled(bEnabled);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_IsSteamChinaLauncher(intptr_t instancePtr)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->IsSteamChinaLauncher();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUtils_InitFilterText(intptr_t instancePtr)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->InitFilterText();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamUtils_FilterText(intptr_t instancePtr, char * pchOutFilteredText, uint32 nByteSizeOutFilteredText, const char * pchInputMessage, bool bLegalOnly)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->FilterText(pchOutFilteredText, nByteSizeOutFilteredText, pchInputMessage, bLegalOnly);
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API ESteamIPv6ConnectivityState SteamAPI_ISteamUtils_GetIPv6ConnectivityState(intptr_t instancePtr, ESteamIPv6ConnectivityProtocol eProtocol)
|
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_utils);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetIPv6ConnectivityState(eProtocol);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetFavoriteGameCount(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetFavoriteGameCount();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_GetFavoriteGame(intptr_t instancePtr, int iGame, AppId_t * pnAppID, uint32 * pnIP, uint16 * pnConnPort, uint16 * pnQueryPort, uint32 * punFlags, uint32 * pRTime32LastPlayedOnServer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetFavoriteGame(iGame, pnAppID, pnIP, pnConnPort, pnQueryPort, punFlags, pRTime32LastPlayedOnServer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamMatchmaking_AddFavoriteGame(intptr_t instancePtr, AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags, uint32 rTime32LastPlayedOnServer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->AddFavoriteGame(nAppID, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_RemoveFavoriteGame(intptr_t instancePtr, AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->RemoveFavoriteGame(nAppID, nIP, nConnPort, nQueryPort, unFlags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamMatchmaking_RequestLobbyList(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->RequestLobbyList();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter(intptr_t instancePtr, const char * pchKeyToMatch, const char * pchValueToMatch, ELobbyComparison eComparisonType)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListStringFilter(pchKeyToMatch, pchValueToMatch, eComparisonType);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter(intptr_t instancePtr, const char * pchKeyToMatch, int nValueToMatch, ELobbyComparison eComparisonType)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListNumericalFilter(pchKeyToMatch, nValueToMatch, eComparisonType);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter(intptr_t instancePtr, const char * pchKeyToMatch, int nValueToBeCloseTo)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListNearValueFilter(pchKeyToMatch, nValueToBeCloseTo);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(intptr_t instancePtr, int nSlotsAvailable)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListFilterSlotsAvailable(nSlotsAvailable);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter(intptr_t instancePtr, ELobbyDistanceFilter eLobbyDistanceFilter)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListDistanceFilter(eLobbyDistanceFilter);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter(intptr_t instancePtr, int cMaxResults)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListResultCountFilter(cMaxResults);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(intptr_t instancePtr, class CSteamID steamIDLobby)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListCompatibleMembersFilter(steamIDLobby);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamMatchmaking_GetLobbyByIndex(intptr_t instancePtr, int iLobby)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetLobbyByIndex(iLobby).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamMatchmaking_CreateLobby(intptr_t instancePtr, ELobbyType eLobbyType, int cMaxMembers)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->CreateLobby(eLobbyType, cMaxMembers);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamMatchmaking_JoinLobby(intptr_t instancePtr, class CSteamID steamIDLobby)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->JoinLobby(steamIDLobby);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmaking_LeaveLobby(intptr_t instancePtr, class CSteamID steamIDLobby)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->LeaveLobby(steamIDLobby);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_InviteUserToLobby(intptr_t instancePtr, class CSteamID steamIDLobby, class CSteamID steamIDInvitee)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->InviteUserToLobby(steamIDLobby, steamIDInvitee);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetNumLobbyMembers(intptr_t instancePtr, class CSteamID steamIDLobby)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetNumLobbyMembers(steamIDLobby);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex(intptr_t instancePtr, class CSteamID steamIDLobby, int iMember)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetLobbyMemberByIndex(steamIDLobby, iMember).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamMatchmaking_GetLobbyData(intptr_t instancePtr, class CSteamID steamIDLobby, const char * pchKey)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetLobbyData(steamIDLobby, pchKey);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLobbyData(intptr_t instancePtr, class CSteamID steamIDLobby, const char * pchKey, const char * pchValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->SetLobbyData(steamIDLobby, pchKey, pchValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetLobbyDataCount(intptr_t instancePtr, class CSteamID steamIDLobby)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetLobbyDataCount(steamIDLobby);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex(intptr_t instancePtr, class CSteamID steamIDLobby, int iLobbyData, char * pchKey, int cchKeyBufferSize, char * pchValue, int cchValueBufferSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetLobbyDataByIndex(steamIDLobby, iLobbyData, pchKey, cchKeyBufferSize, pchValue, cchValueBufferSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_DeleteLobbyData(intptr_t instancePtr, class CSteamID steamIDLobby, const char * pchKey)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->DeleteLobbyData(steamIDLobby, pchKey);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamMatchmaking_GetLobbyMemberData(intptr_t instancePtr, class CSteamID steamIDLobby, class CSteamID steamIDUser, const char * pchKey)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetLobbyMemberData(steamIDLobby, steamIDUser, pchKey);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmaking_SetLobbyMemberData(intptr_t instancePtr, class CSteamID steamIDLobby, const char * pchKey, const char * pchValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->SetLobbyMemberData(steamIDLobby, pchKey, pchValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SendLobbyChatMsg(intptr_t instancePtr, class CSteamID steamIDLobby, const void * pvMsgBody, int cubMsgBody)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->SendLobbyChatMsg(steamIDLobby, pvMsgBody, cubMsgBody);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetLobbyChatEntry(intptr_t instancePtr, class CSteamID steamIDLobby, int iChatID, class CSteamID * pSteamIDUser, void * pvData, int cubData, EChatEntryType * peChatEntryType)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetLobbyChatEntry(steamIDLobby, iChatID, pSteamIDUser, pvData, cubData, peChatEntryType);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_RequestLobbyData(intptr_t instancePtr, class CSteamID steamIDLobby)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->RequestLobbyData(steamIDLobby);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmaking_SetLobbyGameServer(intptr_t instancePtr, class CSteamID steamIDLobby, uint32 unGameServerIP, uint16 unGameServerPort, class CSteamID steamIDGameServer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->SetLobbyGameServer(steamIDLobby, unGameServerIP, unGameServerPort, steamIDGameServer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_GetLobbyGameServer(intptr_t instancePtr, class CSteamID steamIDLobby, uint32 * punGameServerIP, uint16 * punGameServerPort, class CSteamID * psteamIDGameServer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetLobbyGameServer(steamIDLobby, punGameServerIP, punGameServerPort, psteamIDGameServer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit(intptr_t instancePtr, class CSteamID steamIDLobby, int cMaxMembers)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->SetLobbyMemberLimit(steamIDLobby, cMaxMembers);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit(intptr_t instancePtr, class CSteamID steamIDLobby)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetLobbyMemberLimit(steamIDLobby);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLobbyType(intptr_t instancePtr, class CSteamID steamIDLobby, ELobbyType eLobbyType)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->SetLobbyType(steamIDLobby, eLobbyType);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLobbyJoinable(intptr_t instancePtr, class CSteamID steamIDLobby, bool bLobbyJoinable)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->SetLobbyJoinable(steamIDLobby, bLobbyJoinable);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamMatchmaking_GetLobbyOwner(intptr_t instancePtr, class CSteamID steamIDLobby)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->GetLobbyOwner(steamIDLobby).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLobbyOwner(intptr_t instancePtr, class CSteamID steamIDLobby, class CSteamID steamIDNewOwner)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->SetLobbyOwner(steamIDLobby, steamIDNewOwner);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLinkedLobby(intptr_t instancePtr, class CSteamID steamIDLobby, class CSteamID steamIDLobbyDependent)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking)->SetLinkedLobby(steamIDLobby, steamIDLobbyDependent);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingServerListResponse_ServerResponded(intptr_t instancePtr, HServerListRequest hRequest, int iServer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingServerListResponse *)instancePtr)->ServerResponded(hRequest, iServer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingServerListResponse_ServerFailedToRespond(intptr_t instancePtr, HServerListRequest hRequest, int iServer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingServerListResponse *)instancePtr)->ServerFailedToRespond(hRequest, iServer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingServerListResponse_RefreshComplete(intptr_t instancePtr, HServerListRequest hRequest, EMatchMakingServerResponse response)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingServerListResponse *)instancePtr)->RefreshComplete(hRequest, response);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingPingResponse_ServerResponded(intptr_t instancePtr, class gameserveritem_t & server)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingPingResponse *)instancePtr)->ServerResponded(server);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingPingResponse_ServerFailedToRespond(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingPingResponse *)instancePtr)->ServerFailedToRespond();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingPlayersResponse_AddPlayerToList(intptr_t instancePtr, const char * pchName, int nScore, float flTimePlayed)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingPlayersResponse *)instancePtr)->AddPlayerToList(pchName, nScore, flTimePlayed);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingPlayersResponse_PlayersFailedToRespond(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingPlayersResponse *)instancePtr)->PlayersFailedToRespond();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingPlayersResponse_PlayersRefreshComplete(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingPlayersResponse *)instancePtr)->PlayersRefreshComplete();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingRulesResponse_RulesResponded(intptr_t instancePtr, const char * pchRule, const char * pchValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingRulesResponse *)instancePtr)->RulesResponded(pchRule, pchValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingRulesResponse_RulesFailedToRespond(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingRulesResponse *)instancePtr)->RulesFailedToRespond();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingRulesResponse_RulesRefreshComplete(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMatchmakingRulesResponse *)instancePtr)->RulesRefreshComplete();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestInternetServerList(intptr_t instancePtr, AppId_t iApp, struct MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, class ISteamMatchmakingServerListResponse * pRequestServersResponse)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->RequestInternetServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestLANServerList(intptr_t instancePtr, AppId_t iApp, class ISteamMatchmakingServerListResponse * pRequestServersResponse)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->RequestLANServerList(iApp, pRequestServersResponse);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList(intptr_t instancePtr, AppId_t iApp, struct MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, class ISteamMatchmakingServerListResponse * pRequestServersResponse)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->RequestFriendsServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList(intptr_t instancePtr, AppId_t iApp, struct MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, class ISteamMatchmakingServerListResponse * pRequestServersResponse)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->RequestFavoritesServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList(intptr_t instancePtr, AppId_t iApp, struct MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, class ISteamMatchmakingServerListResponse * pRequestServersResponse)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->RequestHistoryServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList(intptr_t instancePtr, AppId_t iApp, struct MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, class ISteamMatchmakingServerListResponse * pRequestServersResponse)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->RequestSpectatorServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_ReleaseRequest(intptr_t instancePtr, HServerListRequest hServerListRequest)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->ReleaseRequest(hServerListRequest);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API class gameserveritem_t * SteamAPI_ISteamMatchmakingServers_GetServerDetails(intptr_t instancePtr, HServerListRequest hRequest, int iServer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->GetServerDetails(hRequest, iServer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_CancelQuery(intptr_t instancePtr, HServerListRequest hRequest)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->CancelQuery(hRequest);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_RefreshQuery(intptr_t instancePtr, HServerListRequest hRequest)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->RefreshQuery(hRequest);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMatchmakingServers_IsRefreshing(intptr_t instancePtr, HServerListRequest hRequest)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->IsRefreshing(hRequest);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamMatchmakingServers_GetServerCount(intptr_t instancePtr, HServerListRequest hRequest)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->GetServerCount(hRequest);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_RefreshServer(intptr_t instancePtr, HServerListRequest hRequest, int iServer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->RefreshServer(hRequest, iServer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HServerQuery SteamAPI_ISteamMatchmakingServers_PingServer(intptr_t instancePtr, uint32 unIP, uint16 usPort, class ISteamMatchmakingPingResponse * pRequestServersResponse)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->PingServer(unIP, usPort, pRequestServersResponse);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HServerQuery SteamAPI_ISteamMatchmakingServers_PlayerDetails(intptr_t instancePtr, uint32 unIP, uint16 usPort, class ISteamMatchmakingPlayersResponse * pRequestServersResponse)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->PlayerDetails(unIP, usPort, pRequestServersResponse);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HServerQuery SteamAPI_ISteamMatchmakingServers_ServerRules(intptr_t instancePtr, uint32 unIP, uint16 usPort, class ISteamMatchmakingRulesResponse * pRequestServersResponse)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->ServerRules(unIP, usPort, pRequestServersResponse);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_CancelServerQuery(intptr_t instancePtr, HServerQuery hServerQuery)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_matchmaking_servers)->CancelServerQuery(hServerQuery);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_AddGameSearchParams(intptr_t instancePtr, const char * pchKeyToFind, const char * pchValuesToFind)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->AddGameSearchParams(pchKeyToFind, pchValuesToFind);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SearchForGameWithLobby(intptr_t instancePtr, class CSteamID steamIDLobby, int nPlayerMin, int nPlayerMax)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->SearchForGameWithLobby(steamIDLobby, nPlayerMin, nPlayerMax);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SearchForGameSolo(intptr_t instancePtr, int nPlayerMin, int nPlayerMax)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->SearchForGameSolo(nPlayerMin, nPlayerMax);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_AcceptGame(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->AcceptGame();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_DeclineGame(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->DeclineGame();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_RetrieveConnectionDetails(intptr_t instancePtr, class CSteamID steamIDHost, char * pchConnectionDetails, int cubConnectionDetails)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->RetrieveConnectionDetails(steamIDHost, pchConnectionDetails, cubConnectionDetails);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_EndGameSearch(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->EndGameSearch();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SetGameHostParams(intptr_t instancePtr, const char * pchKey, const char * pchValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->SetGameHostParams(pchKey, pchValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SetConnectionDetails(intptr_t instancePtr, const char * pchConnectionDetails, int cubConnectionDetails)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->SetConnectionDetails(pchConnectionDetails, cubConnectionDetails);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_RequestPlayersForGame(intptr_t instancePtr, int nPlayerMin, int nPlayerMax, int nMaxTeamSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->RequestPlayersForGame(nPlayerMin, nPlayerMax, nMaxTeamSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_HostConfirmGameStart(intptr_t instancePtr, uint64 ullUniqueGameID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->HostConfirmGameStart(ullUniqueGameID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->CancelRequestPlayersForGame();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SubmitPlayerResult(intptr_t instancePtr, uint64 ullUniqueGameID, class CSteamID steamIDPlayer, EPlayerResult_t EPlayerResult)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->SubmitPlayerResult(ullUniqueGameID, steamIDPlayer, EPlayerResult);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_EndGame(intptr_t instancePtr, uint64 ullUniqueGameID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameSearch *)instancePtr)->EndGame(ullUniqueGameID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamParties_GetNumActiveBeacons(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->GetNumActiveBeacons();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API PartyBeaconID_t SteamAPI_ISteamParties_GetBeaconByIndex(intptr_t instancePtr, uint32 unIndex)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->GetBeaconByIndex(unIndex);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParties_GetBeaconDetails(intptr_t instancePtr, PartyBeaconID_t ulBeaconID, class CSteamID * pSteamIDBeaconOwner, struct SteamPartyBeaconLocation_t * pLocation, char * pchMetadata, int cchMetadata)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->GetBeaconDetails(ulBeaconID, pSteamIDBeaconOwner, pLocation, pchMetadata, cchMetadata);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamParties_JoinParty(intptr_t instancePtr, PartyBeaconID_t ulBeaconID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->JoinParty(ulBeaconID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParties_GetNumAvailableBeaconLocations(intptr_t instancePtr, uint32 * puNumLocations)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->GetNumAvailableBeaconLocations(puNumLocations);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParties_GetAvailableBeaconLocations(intptr_t instancePtr, struct SteamPartyBeaconLocation_t * pLocationList, uint32 uMaxNumLocations)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->GetAvailableBeaconLocations(pLocationList, uMaxNumLocations);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamParties_CreateBeacon(intptr_t instancePtr, uint32 unOpenSlots, struct SteamPartyBeaconLocation_t * pBeaconLocation, const char * pchConnectString, const char * pchMetadata)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->CreateBeacon(unOpenSlots, pBeaconLocation, pchConnectString, pchMetadata);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamParties_OnReservationCompleted(intptr_t instancePtr, PartyBeaconID_t ulBeacon, class CSteamID steamIDUser)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->OnReservationCompleted(ulBeacon, steamIDUser);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamParties_CancelReservation(intptr_t instancePtr, PartyBeaconID_t ulBeacon, class CSteamID steamIDUser)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->CancelReservation(ulBeacon, steamIDUser);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamParties_ChangeNumOpenSlots(intptr_t instancePtr, PartyBeaconID_t ulBeacon, uint32 unOpenSlots)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->ChangeNumOpenSlots(ulBeacon, unOpenSlots);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParties_DestroyBeacon(intptr_t instancePtr, PartyBeaconID_t ulBeacon)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->DestroyBeacon(ulBeacon);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParties_GetBeaconLocationData(intptr_t instancePtr, struct SteamPartyBeaconLocation_t BeaconLocation, ESteamPartyBeaconLocationData eData, char * pchDataStringOut, int cchDataStringOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParties *)instancePtr)->GetBeaconLocationData(BeaconLocation, eData, pchDataStringOut, cchDataStringOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileWrite(intptr_t instancePtr, const char * pchFile, const void * pvData, int32 cubData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileWrite(pchFile, pvData, cubData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_FileRead(intptr_t instancePtr, const char * pchFile, void * pvData, int32 cubDataToRead)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileRead(pchFile, pvData, cubDataToRead);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_FileWriteAsync(intptr_t instancePtr, const char * pchFile, const void * pvData, uint32 cubData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileWriteAsync(pchFile, pvData, cubData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_FileReadAsync(intptr_t instancePtr, const char * pchFile, uint32 nOffset, uint32 cubToRead)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileReadAsync(pchFile, nOffset, cubToRead);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete(intptr_t instancePtr, SteamAPICall_t hReadCall, void * pvBuffer, uint32 cubToRead)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileReadAsyncComplete(hReadCall, pvBuffer, cubToRead);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileForget(intptr_t instancePtr, const char * pchFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileForget(pchFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileDelete(intptr_t instancePtr, const char * pchFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileDelete(pchFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_FileShare(intptr_t instancePtr, const char * pchFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileShare(pchFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_SetSyncPlatforms(intptr_t instancePtr, const char * pchFile, ERemoteStoragePlatform eRemoteStoragePlatform)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->SetSyncPlatforms(pchFile, eRemoteStoragePlatform);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API UGCFileWriteStreamHandle_t SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen(intptr_t instancePtr, const char * pchFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileWriteStreamOpen(pchFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk(intptr_t instancePtr, UGCFileWriteStreamHandle_t writeHandle, const void * pvData, int32 cubData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileWriteStreamWriteChunk(writeHandle, pvData, cubData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileWriteStreamClose(intptr_t instancePtr, UGCFileWriteStreamHandle_t writeHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileWriteStreamClose(writeHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel(intptr_t instancePtr, UGCFileWriteStreamHandle_t writeHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileWriteStreamCancel(writeHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileExists(intptr_t instancePtr, const char * pchFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FileExists(pchFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FilePersisted(intptr_t instancePtr, const char * pchFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->FilePersisted(pchFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_GetFileSize(intptr_t instancePtr, const char * pchFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetFileSize(pchFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int64 SteamAPI_ISteamRemoteStorage_GetFileTimestamp(intptr_t instancePtr, const char * pchFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetFileTimestamp(pchFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ERemoteStoragePlatform SteamAPI_ISteamRemoteStorage_GetSyncPlatforms(intptr_t instancePtr, const char * pchFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetSyncPlatforms(pchFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_GetFileCount(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetFileCount();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamRemoteStorage_GetFileNameAndSize(intptr_t instancePtr, int iFile, int32 * pnFileSizeInBytes)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetFileNameAndSize(iFile, pnFileSizeInBytes);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_GetQuota(intptr_t instancePtr, uint64 * pnTotalBytes, uint64 * puAvailableBytes)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetQuota(pnTotalBytes, puAvailableBytes);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->IsCloudEnabledForAccount();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->IsCloudEnabledForApp();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp(intptr_t instancePtr, bool bEnabled)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->SetCloudEnabledForApp(bEnabled);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UGCDownload(intptr_t instancePtr, UGCHandle_t hContent, uint32 unPriority)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UGCDownload(hContent, unPriority);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress(intptr_t instancePtr, UGCHandle_t hContent, int32 * pnBytesDownloaded, int32 * pnBytesExpected)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetUGCDownloadProgress(hContent, pnBytesDownloaded, pnBytesExpected);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_GetUGCDetails(intptr_t instancePtr, UGCHandle_t hContent, AppId_t * pnAppID, char ** ppchName, int32 * pnFileSizeInBytes, class CSteamID * pSteamIDOwner)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetUGCDetails(hContent, pnAppID, ppchName, pnFileSizeInBytes, pSteamIDOwner);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_UGCRead(intptr_t instancePtr, UGCHandle_t hContent, void * pvData, int32 cubDataToRead, uint32 cOffset, EUGCReadAction eAction)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UGCRead(hContent, pvData, cubDataToRead, cOffset, eAction);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_GetCachedUGCCount(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetCachedUGCCount();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API UGCHandle_t SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle(intptr_t instancePtr, int32 iCachedContent)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetCachedUGCHandle(iCachedContent);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_PublishWorkshopFile(intptr_t instancePtr, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, struct SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->PublishWorkshopFile(pchFile, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API PublishedFileUpdateHandle_t SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest(intptr_t instancePtr, PublishedFileId_t unPublishedFileId)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->CreatePublishedFileUpdateRequest(unPublishedFileId);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile(intptr_t instancePtr, PublishedFileUpdateHandle_t updateHandle, const char * pchFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileFile(updateHandle, pchFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile(intptr_t instancePtr, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFilePreviewFile(updateHandle, pchPreviewFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle(intptr_t instancePtr, PublishedFileUpdateHandle_t updateHandle, const char * pchTitle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileTitle(updateHandle, pchTitle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription(intptr_t instancePtr, PublishedFileUpdateHandle_t updateHandle, const char * pchDescription)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileDescription(updateHandle, pchDescription);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility(intptr_t instancePtr, PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileVisibility(updateHandle, eVisibility);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags(intptr_t instancePtr, PublishedFileUpdateHandle_t updateHandle, struct SteamParamStringArray_t * pTags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileTags(updateHandle, pTags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate(intptr_t instancePtr, PublishedFileUpdateHandle_t updateHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->CommitPublishedFileUpdate(updateHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails(intptr_t instancePtr, PublishedFileId_t unPublishedFileId, uint32 unMaxSecondsOld)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetPublishedFileDetails(unPublishedFileId, unMaxSecondsOld);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_DeletePublishedFile(intptr_t instancePtr, PublishedFileId_t unPublishedFileId)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->DeletePublishedFile(unPublishedFileId);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles(intptr_t instancePtr, uint32 unStartIndex)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->EnumerateUserPublishedFiles(unStartIndex);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_SubscribePublishedFile(intptr_t instancePtr, PublishedFileId_t unPublishedFileId)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->SubscribePublishedFile(unPublishedFileId);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles(intptr_t instancePtr, uint32 unStartIndex)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->EnumerateUserSubscribedFiles(unStartIndex);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile(intptr_t instancePtr, PublishedFileId_t unPublishedFileId)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UnsubscribePublishedFile(unPublishedFileId);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(intptr_t instancePtr, PublishedFileUpdateHandle_t updateHandle, const char * pchChangeDescription)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileSetChangeDescription(updateHandle, pchChangeDescription);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails(intptr_t instancePtr, PublishedFileId_t unPublishedFileId)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetPublishedItemVoteDetails(unPublishedFileId);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote(intptr_t instancePtr, PublishedFileId_t unPublishedFileId, bool bVoteUp)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UpdateUserPublishedItemVote(unPublishedFileId, bVoteUp);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails(intptr_t instancePtr, PublishedFileId_t unPublishedFileId)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->GetUserPublishedItemVoteDetails(unPublishedFileId);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(intptr_t instancePtr, class CSteamID steamId, uint32 unStartIndex, struct SteamParamStringArray_t * pRequiredTags, struct SteamParamStringArray_t * pExcludedTags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->EnumerateUserSharedWorkshopFiles(steamId, unStartIndex, pRequiredTags, pExcludedTags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_PublishVideo(intptr_t instancePtr, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, struct SteamParamStringArray_t * pTags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->PublishVideo(eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction(intptr_t instancePtr, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->SetUserPublishedFileAction(unPublishedFileId, eAction);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(intptr_t instancePtr, EWorkshopFileAction eAction, uint32 unStartIndex)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->EnumeratePublishedFilesByUserAction(eAction, unStartIndex);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(intptr_t instancePtr, EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, struct SteamParamStringArray_t * pTags, struct SteamParamStringArray_t * pUserTags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->EnumeratePublishedWorkshopFiles(eEnumerationType, unStartIndex, unCount, unDays, pTags, pUserTags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation(intptr_t instancePtr, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_remote_storage)->UGCDownloadToLocation(hContent, pchLocation, unPriority);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_RequestCurrentStats(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->RequestCurrentStats();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetStat(intptr_t instancePtr, const char * pchName, int32 * pData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetStat(pchName, pData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetStat0(intptr_t instancePtr, const char * pchName, float * pData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetStat(pchName, pData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_SetStat(intptr_t instancePtr, const char * pchName, int32 nData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->SetStat(pchName, nData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_SetStat0(intptr_t instancePtr, const char * pchName, float fData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->SetStat(pchName, fData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_UpdateAvgRateStat(intptr_t instancePtr, const char * pchName, float flCountThisSession, double dSessionLength)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->UpdateAvgRateStat(pchName, flCountThisSession, dSessionLength);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetAchievement(intptr_t instancePtr, const char * pchName, bool * pbAchieved)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetAchievement(pchName, pbAchieved);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_SetAchievement(intptr_t instancePtr, const char * pchName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->SetAchievement(pchName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_ClearAchievement(intptr_t instancePtr, const char * pchName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->ClearAchievement(pchName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime(intptr_t instancePtr, const char * pchName, bool * pbAchieved, uint32 * punUnlockTime)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetAchievementAndUnlockTime(pchName, pbAchieved, punUnlockTime);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_StoreStats(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->StoreStats();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamUserStats_GetAchievementIcon(intptr_t instancePtr, const char * pchName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetAchievementIcon(pchName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(intptr_t instancePtr, const char * pchName, const char * pchKey)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetAchievementDisplayAttribute(pchName, pchKey);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_IndicateAchievementProgress(intptr_t instancePtr, const char * pchName, uint32 nCurProgress, uint32 nMaxProgress)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->IndicateAchievementProgress(pchName, nCurProgress, nMaxProgress);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUserStats_GetNumAchievements(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetNumAchievements();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamUserStats_GetAchievementName(intptr_t instancePtr, uint32 iAchievement)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetAchievementName(iAchievement);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_RequestUserStats(intptr_t instancePtr, class CSteamID steamIDUser)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->RequestUserStats(steamIDUser);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetUserStat(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, int32 * pData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetUserStat(steamIDUser, pchName, pData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetUserStat0(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, float * pData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetUserStat(steamIDUser, pchName, pData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetUserAchievement(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, bool * pbAchieved)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetUserAchievement(steamIDUser, pchName, pbAchieved);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, bool * pbAchieved, uint32 * punUnlockTime)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetUserAchievementAndUnlockTime(steamIDUser, pchName, pbAchieved, punUnlockTime);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_ResetAllStats(intptr_t instancePtr, bool bAchievementsToo)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->ResetAllStats(bAchievementsToo);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_FindOrCreateLeaderboard(intptr_t instancePtr, const char * pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->FindOrCreateLeaderboard(pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_FindLeaderboard(intptr_t instancePtr, const char * pchLeaderboardName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->FindLeaderboard(pchLeaderboardName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamUserStats_GetLeaderboardName(intptr_t instancePtr, SteamLeaderboard_t hSteamLeaderboard)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetLeaderboardName(hSteamLeaderboard);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamUserStats_GetLeaderboardEntryCount(intptr_t instancePtr, SteamLeaderboard_t hSteamLeaderboard)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetLeaderboardEntryCount(hSteamLeaderboard);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ELeaderboardSortMethod SteamAPI_ISteamUserStats_GetLeaderboardSortMethod(intptr_t instancePtr, SteamLeaderboard_t hSteamLeaderboard)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetLeaderboardSortMethod(hSteamLeaderboard);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ELeaderboardDisplayType SteamAPI_ISteamUserStats_GetLeaderboardDisplayType(intptr_t instancePtr, SteamLeaderboard_t hSteamLeaderboard)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetLeaderboardDisplayType(hSteamLeaderboard);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_DownloadLeaderboardEntries(intptr_t instancePtr, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->DownloadLeaderboardEntries(hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers(intptr_t instancePtr, SteamLeaderboard_t hSteamLeaderboard, class CSteamID * prgUsers, int cUsers)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->DownloadLeaderboardEntriesForUsers(hSteamLeaderboard, prgUsers, cUsers);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry(intptr_t instancePtr, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, struct LeaderboardEntry_t * pLeaderboardEntry, int32 * pDetails, int cDetailsMax)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetDownloadedLeaderboardEntry(hSteamLeaderboardEntries, index, pLeaderboardEntry, pDetails, cDetailsMax);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_UploadLeaderboardScore(intptr_t instancePtr, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 * pScoreDetails, int cScoreDetailsCount)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->UploadLeaderboardScore(hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_AttachLeaderboardUGC(intptr_t instancePtr, SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->AttachLeaderboardUGC(hSteamLeaderboard, hUGC);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetNumberOfCurrentPlayers();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->RequestGlobalAchievementPercentages();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo(intptr_t instancePtr, char * pchName, uint32 unNameBufLen, float * pflPercent, bool * pbAchieved)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetMostAchievedAchievementInfo(pchName, unNameBufLen, pflPercent, pbAchieved);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo(intptr_t instancePtr, int iIteratorPrevious, char * pchName, uint32 unNameBufLen, float * pflPercent, bool * pbAchieved)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetNextMostAchievedAchievementInfo(iIteratorPrevious, pchName, unNameBufLen, pflPercent, pbAchieved);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetAchievementAchievedPercent(intptr_t instancePtr, const char * pchName, float * pflPercent)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetAchievementAchievedPercent(pchName, pflPercent);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_RequestGlobalStats(intptr_t instancePtr, int nHistoryDays)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->RequestGlobalStats(nHistoryDays);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetGlobalStat(intptr_t instancePtr, const char * pchStatName, int64 * pData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetGlobalStat(pchStatName, pData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetGlobalStat0(intptr_t instancePtr, const char * pchStatName, double * pData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetGlobalStat(pchStatName, pData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int32 SteamAPI_ISteamUserStats_GetGlobalStatHistory(intptr_t instancePtr, const char * pchStatName, int64 * pData, uint32 cubData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetGlobalStatHistory(pchStatName, pData, cubData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int32 SteamAPI_ISteamUserStats_GetGlobalStatHistory0(intptr_t instancePtr, const char * pchStatName, double * pData, uint32 cubData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_user_stats)->GetGlobalStatHistory(pchStatName, pData, cubData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_BIsSubscribed(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->BIsSubscribed();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_BIsLowViolence(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->BIsLowViolence();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_BIsCybercafe(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->BIsCybercafe();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_BIsVACBanned(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->BIsVACBanned();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamApps_GetCurrentGameLanguage(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetCurrentGameLanguage();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamApps_GetAvailableGameLanguages(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetAvailableGameLanguages();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_BIsSubscribedApp(intptr_t instancePtr, AppId_t appID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->BIsSubscribedApp(appID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_BIsDlcInstalled(intptr_t instancePtr, AppId_t appID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->BIsDlcInstalled(appID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime(intptr_t instancePtr, AppId_t nAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetEarliestPurchaseUnixTime(nAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->BIsSubscribedFromFreeWeekend();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamApps_GetDLCCount(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetDLCCount();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_BGetDLCDataByIndex(intptr_t instancePtr, int iDLC, AppId_t * pAppID, bool * pbAvailable, char * pchName, int cchNameBufferSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->BGetDLCDataByIndex(iDLC, pAppID, pbAvailable, pchName, cchNameBufferSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamApps_InstallDLC(intptr_t instancePtr, AppId_t nAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->InstallDLC(nAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamApps_UninstallDLC(intptr_t instancePtr, AppId_t nAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->UninstallDLC(nAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey(intptr_t instancePtr, AppId_t nAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->RequestAppProofOfPurchaseKey(nAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_GetCurrentBetaName(intptr_t instancePtr, char * pchName, int cchNameBufferSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetCurrentBetaName(pchName, cchNameBufferSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_MarkContentCorrupt(intptr_t instancePtr, bool bMissingFilesOnly)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->MarkContentCorrupt(bMissingFilesOnly);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamApps_GetInstalledDepots(intptr_t instancePtr, AppId_t appID, DepotId_t * pvecDepots, uint32 cMaxDepots)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetInstalledDepots(appID, pvecDepots, cMaxDepots);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamApps_GetAppInstallDir(intptr_t instancePtr, AppId_t appID, char * pchFolder, uint32 cchFolderBufferSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetAppInstallDir(appID, pchFolder, cchFolderBufferSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_BIsAppInstalled(intptr_t instancePtr, AppId_t appID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->BIsAppInstalled(appID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamApps_GetAppOwner(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetAppOwner().ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamApps_GetLaunchQueryParam(intptr_t instancePtr, const char * pchKey)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetLaunchQueryParam(pchKey);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_GetDlcDownloadProgress(intptr_t instancePtr, AppId_t nAppID, uint64 * punBytesDownloaded, uint64 * punBytesTotal)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetDlcDownloadProgress(nAppID, punBytesDownloaded, punBytesTotal);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamApps_GetAppBuildId(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetAppBuildId();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->RequestAllProofOfPurchaseKeys();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamApps_GetFileDetails(intptr_t instancePtr, const char * pszFileName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetFileDetails(pszFileName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamApps_GetLaunchCommandLine(intptr_t instancePtr, char * pszCommandLine, int cubCommandLine)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->GetLaunchCommandLine(pszCommandLine, cubCommandLine);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamApps *)instancePtr)->BIsSubscribedFromFamilySharing();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_SendP2PPacket(intptr_t instancePtr, class CSteamID steamIDRemote, const void * pubData, uint32 cubData, EP2PSend eP2PSendType, int nChannel)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->SendP2PPacket(steamIDRemote, pubData, cubData, eP2PSendType, nChannel);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_IsP2PPacketAvailable(intptr_t instancePtr, uint32 * pcubMsgSize, int nChannel)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->IsP2PPacketAvailable(pcubMsgSize, nChannel);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_ReadP2PPacket(intptr_t instancePtr, void * pubDest, uint32 cubDest, uint32 * pcubMsgSize, class CSteamID * psteamIDRemote, int nChannel)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->ReadP2PPacket(pubDest, cubDest, pcubMsgSize, psteamIDRemote, nChannel);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser(intptr_t instancePtr, class CSteamID steamIDRemote)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->AcceptP2PSessionWithUser(steamIDRemote);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_CloseP2PSessionWithUser(intptr_t instancePtr, class CSteamID steamIDRemote)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->CloseP2PSessionWithUser(steamIDRemote);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_CloseP2PChannelWithUser(intptr_t instancePtr, class CSteamID steamIDRemote, int nChannel)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->CloseP2PChannelWithUser(steamIDRemote, nChannel);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_GetP2PSessionState(intptr_t instancePtr, class CSteamID steamIDRemote, struct P2PSessionState_t * pConnectionState)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->GetP2PSessionState(steamIDRemote, pConnectionState);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_AllowP2PPacketRelay(intptr_t instancePtr, bool bAllow)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->AllowP2PPacketRelay(bAllow);
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API SNetListenSocket_t SteamAPI_ISteamNetworking_CreateListenSocket(intptr_t instancePtr, int nVirtualP2PPort, struct SteamIPAddress_t nIP, uint16 nPort, bool bAllowUseOfPacketRelay)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->CreateListenSocket(nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SNetSocket_t SteamAPI_ISteamNetworking_CreateP2PConnectionSocket(intptr_t instancePtr, class CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->CreateP2PConnectionSocket(steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay);
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API SNetSocket_t SteamAPI_ISteamNetworking_CreateConnectionSocket(intptr_t instancePtr, struct SteamIPAddress_t nIP, uint16 nPort, int nTimeoutSec)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->CreateConnectionSocket(nIP, nPort, nTimeoutSec);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_DestroySocket(intptr_t instancePtr, SNetSocket_t hSocket, bool bNotifyRemoteEnd)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->DestroySocket(hSocket, bNotifyRemoteEnd);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_DestroyListenSocket(intptr_t instancePtr, SNetListenSocket_t hSocket, bool bNotifyRemoteEnd)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->DestroyListenSocket(hSocket, bNotifyRemoteEnd);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_SendDataOnSocket(intptr_t instancePtr, SNetSocket_t hSocket, void * pubData, uint32 cubData, bool bReliable)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->SendDataOnSocket(hSocket, pubData, cubData, bReliable);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_IsDataAvailableOnSocket(intptr_t instancePtr, SNetSocket_t hSocket, uint32 * pcubMsgSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->IsDataAvailableOnSocket(hSocket, pcubMsgSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_RetrieveDataFromSocket(intptr_t instancePtr, SNetSocket_t hSocket, void * pubDest, uint32 cubDest, uint32 * pcubMsgSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->RetrieveDataFromSocket(hSocket, pubDest, cubDest, pcubMsgSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_IsDataAvailable(intptr_t instancePtr, SNetListenSocket_t hListenSocket, uint32 * pcubMsgSize, SNetSocket_t * phSocket)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->IsDataAvailable(hListenSocket, pcubMsgSize, phSocket);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_RetrieveData(intptr_t instancePtr, SNetListenSocket_t hListenSocket, void * pubDest, uint32 cubDest, uint32 * pcubMsgSize, SNetSocket_t * phSocket)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->RetrieveData(hListenSocket, pubDest, cubDest, pcubMsgSize, phSocket);
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_GetSocketInfo(intptr_t instancePtr, SNetSocket_t hSocket, class CSteamID * pSteamIDRemote, int * peSocketStatus, struct SteamIPAddress_t * punIPRemote, uint16 * punPortRemote)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->GetSocketInfo(hSocket, pSteamIDRemote, peSocketStatus, punIPRemote, punPortRemote);
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamNetworking_GetListenSocketInfo(intptr_t instancePtr, SNetListenSocket_t hListenSocket, struct SteamIPAddress_t * pnIP, uint16 * pnPort)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->GetListenSocketInfo(hListenSocket, pnIP, pnPort);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ESNetSocketConnectionType SteamAPI_ISteamNetworking_GetSocketConnectionType(intptr_t instancePtr, SNetSocket_t hSocket)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->GetSocketConnectionType(hSocket);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamNetworking_GetMaxPacketSize(intptr_t instancePtr, SNetSocket_t hSocket)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamNetworking *)instancePtr)->GetMaxPacketSize(hSocket);
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ScreenshotHandle SteamAPI_ISteamScreenshots_WriteScreenshot(intptr_t instancePtr, void * pubRGB, uint32 cubRGB, int nWidth, int nHeight)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_screenshots)->WriteScreenshot(pubRGB, cubRGB, nWidth, nHeight);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ScreenshotHandle SteamAPI_ISteamScreenshots_AddScreenshotToLibrary(intptr_t instancePtr, const char * pchFilename, const char * pchThumbnailFilename, int nWidth, int nHeight)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_screenshots)->AddScreenshotToLibrary(pchFilename, pchThumbnailFilename, nWidth, nHeight);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamScreenshots_TriggerScreenshot(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_screenshots)->TriggerScreenshot();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamScreenshots_HookScreenshots(intptr_t instancePtr, bool bHook)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_screenshots)->HookScreenshots(bHook);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamScreenshots_SetLocation(intptr_t instancePtr, ScreenshotHandle hScreenshot, const char * pchLocation)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_screenshots)->SetLocation(hScreenshot, pchLocation);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamScreenshots_TagUser(intptr_t instancePtr, ScreenshotHandle hScreenshot, class CSteamID steamID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_screenshots)->TagUser(hScreenshot, steamID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamScreenshots_TagPublishedFile(intptr_t instancePtr, ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_screenshots)->TagPublishedFile(hScreenshot, unPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamScreenshots_IsScreenshotsHooked(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_screenshots)->IsScreenshotsHooked();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ScreenshotHandle SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary(intptr_t instancePtr, EVRScreenshotType eType, const char * pchFilename, const char * pchVRFilename)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_screenshots)->AddVRScreenshotToLibrary(eType, pchFilename, pchVRFilename);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusic_BIsEnabled(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusic *)instancePtr)->BIsEnabled();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusic_BIsPlaying(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusic *)instancePtr)->BIsPlaying();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API AudioPlayback_Status SteamAPI_ISteamMusic_GetPlaybackStatus(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusic *)instancePtr)->GetPlaybackStatus();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMusic_Play(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusic *)instancePtr)->Play();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMusic_Pause(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusic *)instancePtr)->Pause();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMusic_PlayPrevious(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusic *)instancePtr)->PlayPrevious();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMusic_PlayNext(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusic *)instancePtr)->PlayNext();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamMusic_SetVolume(intptr_t instancePtr, float flVolume)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusic *)instancePtr)->SetVolume(flVolume);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API float SteamAPI_ISteamMusic_GetVolume(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusic *)instancePtr)->GetVolume();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote(intptr_t instancePtr, const char * pchName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->RegisterSteamMusicRemote(pchName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->DeregisterSteamMusicRemote();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->BIsCurrentMusicRemote();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_BActivationSuccess(intptr_t instancePtr, bool bValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->BActivationSuccess(bValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetDisplayName(intptr_t instancePtr, const char * pchDisplayName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->SetDisplayName(pchDisplayName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64(intptr_t instancePtr, void * pvBuffer, uint32 cbBufferLength)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->SetPNGIcon_64x64(pvBuffer, cbBufferLength);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnablePlayPrevious(intptr_t instancePtr, bool bValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->EnablePlayPrevious(bValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnablePlayNext(intptr_t instancePtr, bool bValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->EnablePlayNext(bValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnableShuffled(intptr_t instancePtr, bool bValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->EnableShuffled(bValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnableLooped(intptr_t instancePtr, bool bValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->EnableLooped(bValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnableQueue(intptr_t instancePtr, bool bValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->EnableQueue(bValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnablePlaylists(intptr_t instancePtr, bool bValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->EnablePlaylists(bValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus(intptr_t instancePtr, AudioPlayback_Status nStatus)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->UpdatePlaybackStatus(nStatus);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateShuffled(intptr_t instancePtr, bool bValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->UpdateShuffled(bValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateLooped(intptr_t instancePtr, bool bValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->UpdateLooped(bValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateVolume(intptr_t instancePtr, float flValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->UpdateVolume(flValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_CurrentEntryWillChange(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->CurrentEntryWillChange();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable(intptr_t instancePtr, bool bAvailable)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->CurrentEntryIsAvailable(bAvailable);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText(intptr_t instancePtr, const char * pchText)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->UpdateCurrentEntryText(pchText);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(intptr_t instancePtr, int nValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->UpdateCurrentEntryElapsedSeconds(nValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt(intptr_t instancePtr, void * pvBuffer, uint32 cbBufferLength)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->UpdateCurrentEntryCoverArt(pvBuffer, cbBufferLength);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_CurrentEntryDidChange(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->CurrentEntryDidChange();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_QueueWillChange(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->QueueWillChange();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_ResetQueueEntries(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->ResetQueueEntries();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetQueueEntry(intptr_t instancePtr, int nID, int nPosition, const char * pchEntryText)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->SetQueueEntry(nID, nPosition, pchEntryText);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry(intptr_t instancePtr, int nID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->SetCurrentQueueEntry(nID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_QueueDidChange(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->QueueDidChange();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_PlaylistWillChange(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->PlaylistWillChange();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_ResetPlaylistEntries(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->ResetPlaylistEntries();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetPlaylistEntry(intptr_t instancePtr, int nID, int nPosition, const char * pchEntryText)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->SetPlaylistEntry(nID, nPosition, pchEntryText);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry(intptr_t instancePtr, int nID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->SetCurrentPlaylistEntry(nID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_PlaylistDidChange(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamMusicRemote *)instancePtr)->PlaylistDidChange();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HTTPRequestHandle SteamAPI_ISteamHTTP_CreateHTTPRequest(intptr_t instancePtr, EHTTPMethod eHTTPRequestMethod, const char * pchAbsoluteURL)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->CreateHTTPRequest(eHTTPRequestMethod, pchAbsoluteURL);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestContextValue(intptr_t instancePtr, HTTPRequestHandle hRequest, uint64 ulContextValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SetHTTPRequestContextValue(hRequest, ulContextValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(intptr_t instancePtr, HTTPRequestHandle hRequest, uint32 unTimeoutSeconds)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SetHTTPRequestNetworkActivityTimeout(hRequest, unTimeoutSeconds);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue(intptr_t instancePtr, HTTPRequestHandle hRequest, const char * pchHeaderName, const char * pchHeaderValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SetHTTPRequestHeaderValue(hRequest, pchHeaderName, pchHeaderValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter(intptr_t instancePtr, HTTPRequestHandle hRequest, const char * pchParamName, const char * pchParamValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SetHTTPRequestGetOrPostParameter(hRequest, pchParamName, pchParamValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SendHTTPRequest(intptr_t instancePtr, HTTPRequestHandle hRequest, SteamAPICall_t * pCallHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SendHTTPRequest(hRequest, pCallHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse(intptr_t instancePtr, HTTPRequestHandle hRequest, SteamAPICall_t * pCallHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SendHTTPRequestAndStreamResponse(hRequest, pCallHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_DeferHTTPRequest(intptr_t instancePtr, HTTPRequestHandle hRequest)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->DeferHTTPRequest(hRequest);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_PrioritizeHTTPRequest(intptr_t instancePtr, HTTPRequestHandle hRequest)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->PrioritizeHTTPRequest(hRequest);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize(intptr_t instancePtr, HTTPRequestHandle hRequest, const char * pchHeaderName, uint32 * unResponseHeaderSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->GetHTTPResponseHeaderSize(hRequest, pchHeaderName, unResponseHeaderSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue(intptr_t instancePtr, HTTPRequestHandle hRequest, const char * pchHeaderName, uint8 * pHeaderValueBuffer, uint32 unBufferSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->GetHTTPResponseHeaderValue(hRequest, pchHeaderName, pHeaderValueBuffer, unBufferSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPResponseBodySize(intptr_t instancePtr, HTTPRequestHandle hRequest, uint32 * unBodySize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->GetHTTPResponseBodySize(hRequest, unBodySize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPResponseBodyData(intptr_t instancePtr, HTTPRequestHandle hRequest, uint8 * pBodyDataBuffer, uint32 unBufferSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->GetHTTPResponseBodyData(hRequest, pBodyDataBuffer, unBufferSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData(intptr_t instancePtr, HTTPRequestHandle hRequest, uint32 cOffset, uint8 * pBodyDataBuffer, uint32 unBufferSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->GetHTTPStreamingResponseBodyData(hRequest, cOffset, pBodyDataBuffer, unBufferSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_ReleaseHTTPRequest(intptr_t instancePtr, HTTPRequestHandle hRequest)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->ReleaseHTTPRequest(hRequest);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct(intptr_t instancePtr, HTTPRequestHandle hRequest, float * pflPercentOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->GetHTTPDownloadProgressPct(hRequest, pflPercentOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody(intptr_t instancePtr, HTTPRequestHandle hRequest, const char * pchContentType, uint8 * pubBody, uint32 unBodyLen)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SetHTTPRequestRawPostBody(hRequest, pchContentType, pubBody, unBodyLen);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HTTPCookieContainerHandle SteamAPI_ISteamHTTP_CreateCookieContainer(intptr_t instancePtr, bool bAllowResponsesToModify)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->CreateCookieContainer(bAllowResponsesToModify);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_ReleaseCookieContainer(intptr_t instancePtr, HTTPCookieContainerHandle hCookieContainer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->ReleaseCookieContainer(hCookieContainer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetCookie(intptr_t instancePtr, HTTPCookieContainerHandle hCookieContainer, const char * pchHost, const char * pchUrl, const char * pchCookie)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SetCookie(hCookieContainer, pchHost, pchUrl, pchCookie);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer(intptr_t instancePtr, HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SetHTTPRequestCookieContainer(hRequest, hCookieContainer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo(intptr_t instancePtr, HTTPRequestHandle hRequest, const char * pchUserAgentInfo)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SetHTTPRequestUserAgentInfo(hRequest, pchUserAgentInfo);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(intptr_t instancePtr, HTTPRequestHandle hRequest, bool bRequireVerifiedCertificate)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SetHTTPRequestRequiresVerifiedCertificate(hRequest, bRequireVerifiedCertificate);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(intptr_t instancePtr, HTTPRequestHandle hRequest, uint32 unMilliseconds)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->SetHTTPRequestAbsoluteTimeoutMS(hRequest, unMilliseconds);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut(intptr_t instancePtr, HTTPRequestHandle hRequest, bool * pbWasTimedOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamHTTP *)instancePtr)->GetHTTPRequestWasTimedOut(hRequest, pbWasTimedOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInput_Init(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->Init();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInput_Shutdown(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->Shutdown();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInput_RunFrame(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->RunFrame();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamInput_GetConnectedControllers(intptr_t instancePtr, InputHandle_t * handlesOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetConnectedControllers(handlesOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API InputActionSetHandle_t SteamAPI_ISteamInput_GetActionSetHandle(intptr_t instancePtr, const char * pszActionSetName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetActionSetHandle(pszActionSetName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInput_ActivateActionSet(intptr_t instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->ActivateActionSet(inputHandle, actionSetHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API InputActionSetHandle_t SteamAPI_ISteamInput_GetCurrentActionSet(intptr_t instancePtr, InputHandle_t inputHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetCurrentActionSet(inputHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInput_ActivateActionSetLayer(intptr_t instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetLayerHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->ActivateActionSetLayer(inputHandle, actionSetLayerHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInput_DeactivateActionSetLayer(intptr_t instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetLayerHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->DeactivateActionSetLayer(inputHandle, actionSetLayerHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInput_DeactivateAllActionSetLayers(intptr_t instancePtr, InputHandle_t inputHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->DeactivateAllActionSetLayers(inputHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamInput_GetActiveActionSetLayers(intptr_t instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t * handlesOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetActiveActionSetLayers(inputHandle, handlesOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API InputDigitalActionHandle_t SteamAPI_ISteamInput_GetDigitalActionHandle(intptr_t instancePtr, const char * pszActionName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetDigitalActionHandle(pszActionName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API struct InputDigitalActionData_t SteamAPI_ISteamInput_GetDigitalActionData(intptr_t instancePtr, InputHandle_t inputHandle, InputDigitalActionHandle_t digitalActionHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetDigitalActionData(inputHandle, digitalActionHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamInput_GetDigitalActionOrigins(intptr_t instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputDigitalActionHandle_t digitalActionHandle, EInputActionOrigin * originsOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetDigitalActionOrigins(inputHandle, actionSetHandle, digitalActionHandle, originsOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API InputAnalogActionHandle_t SteamAPI_ISteamInput_GetAnalogActionHandle(intptr_t instancePtr, const char * pszActionName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetAnalogActionHandle(pszActionName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API struct InputAnalogActionData_t SteamAPI_ISteamInput_GetAnalogActionData(intptr_t instancePtr, InputHandle_t inputHandle, InputAnalogActionHandle_t analogActionHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetAnalogActionData(inputHandle, analogActionHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamInput_GetAnalogActionOrigins(intptr_t instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputAnalogActionHandle_t analogActionHandle, EInputActionOrigin * originsOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetAnalogActionOrigins(inputHandle, actionSetHandle, analogActionHandle, originsOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamInput_GetGlyphForActionOrigin(intptr_t instancePtr, EInputActionOrigin eOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetGlyphForActionOrigin(eOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamInput_GetStringForActionOrigin(intptr_t instancePtr, EInputActionOrigin eOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetStringForActionOrigin(eOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInput_StopAnalogActionMomentum(intptr_t instancePtr, InputHandle_t inputHandle, InputAnalogActionHandle_t eAction)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->StopAnalogActionMomentum(inputHandle, eAction);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API struct InputMotionData_t SteamAPI_ISteamInput_GetMotionData(intptr_t instancePtr, InputHandle_t inputHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetMotionData(inputHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInput_TriggerVibration(intptr_t instancePtr, InputHandle_t inputHandle, unsigned short usLeftSpeed, unsigned short usRightSpeed)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->TriggerVibration(inputHandle, usLeftSpeed, usRightSpeed);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInput_SetLEDColor(intptr_t instancePtr, InputHandle_t inputHandle, uint8 nColorR, uint8 nColorG, uint8 nColorB, unsigned int nFlags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->SetLEDColor(inputHandle, nColorR, nColorG, nColorB, nFlags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInput_TriggerHapticPulse(intptr_t instancePtr, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->TriggerHapticPulse(inputHandle, eTargetPad, usDurationMicroSec);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInput_TriggerRepeatedHapticPulse(intptr_t instancePtr, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec, unsigned short usOffMicroSec, unsigned short unRepeat, unsigned int nFlags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->TriggerRepeatedHapticPulse(inputHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInput_ShowBindingPanel(intptr_t instancePtr, InputHandle_t inputHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->ShowBindingPanel(inputHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ESteamInputType SteamAPI_ISteamInput_GetInputTypeForHandle(intptr_t instancePtr, InputHandle_t inputHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetInputTypeForHandle(inputHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API InputHandle_t SteamAPI_ISteamInput_GetControllerForGamepadIndex(intptr_t instancePtr, int nIndex)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetControllerForGamepadIndex(nIndex);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamInput_GetGamepadIndexForController(intptr_t instancePtr, InputHandle_t ulinputHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetGamepadIndexForController(ulinputHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamInput_GetStringForXboxOrigin(intptr_t instancePtr, EXboxOrigin eOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetStringForXboxOrigin(eOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamInput_GetGlyphForXboxOrigin(intptr_t instancePtr, EXboxOrigin eOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetGlyphForXboxOrigin(eOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EInputActionOrigin SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin(intptr_t instancePtr, InputHandle_t inputHandle, EXboxOrigin eOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetActionOriginFromXboxOrigin(inputHandle, eOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EInputActionOrigin SteamAPI_ISteamInput_TranslateActionOrigin(intptr_t instancePtr, ESteamInputType eDestinationInputType, EInputActionOrigin eSourceOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->TranslateActionOrigin(eDestinationInputType, eSourceOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInput_GetDeviceBindingRevision(intptr_t instancePtr, InputHandle_t inputHandle, int * pMajor, int * pMinor)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetDeviceBindingRevision(inputHandle, pMajor, pMinor);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamInput_GetRemotePlaySessionID(intptr_t instancePtr, InputHandle_t inputHandle)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetRemotePlaySessionID(inputHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamController_Init(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->Init();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamController_Shutdown(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->Shutdown();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamController_RunFrame(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->RunFrame();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamController_GetConnectedControllers(intptr_t instancePtr, ControllerHandle_t * handlesOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetConnectedControllers(handlesOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ControllerActionSetHandle_t SteamAPI_ISteamController_GetActionSetHandle(intptr_t instancePtr, const char * pszActionSetName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetActionSetHandle(pszActionSetName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamController_ActivateActionSet(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->ActivateActionSet(controllerHandle, actionSetHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ControllerActionSetHandle_t SteamAPI_ISteamController_GetCurrentActionSet(intptr_t instancePtr, ControllerHandle_t controllerHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetCurrentActionSet(controllerHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamController_ActivateActionSetLayer(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetLayerHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->ActivateActionSetLayer(controllerHandle, actionSetLayerHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamController_DeactivateActionSetLayer(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetLayerHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->DeactivateActionSetLayer(controllerHandle, actionSetLayerHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamController_DeactivateAllActionSetLayers(intptr_t instancePtr, ControllerHandle_t controllerHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->DeactivateAllActionSetLayers(controllerHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamController_GetActiveActionSetLayers(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t * handlesOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetActiveActionSetLayers(controllerHandle, handlesOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ControllerDigitalActionHandle_t SteamAPI_ISteamController_GetDigitalActionHandle(intptr_t instancePtr, const char * pszActionName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetDigitalActionHandle(pszActionName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API struct InputDigitalActionData_t SteamAPI_ISteamController_GetDigitalActionData(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetDigitalActionData(controllerHandle, digitalActionHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamController_GetDigitalActionOrigins(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerDigitalActionHandle_t digitalActionHandle, EControllerActionOrigin * originsOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetDigitalActionOrigins(controllerHandle, actionSetHandle, digitalActionHandle, originsOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ControllerAnalogActionHandle_t SteamAPI_ISteamController_GetAnalogActionHandle(intptr_t instancePtr, const char * pszActionName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetAnalogActionHandle(pszActionName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API struct InputAnalogActionData_t SteamAPI_ISteamController_GetAnalogActionData(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetAnalogActionData(controllerHandle, analogActionHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamController_GetAnalogActionOrigins(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerAnalogActionHandle_t analogActionHandle, EControllerActionOrigin * originsOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetAnalogActionOrigins(controllerHandle, actionSetHandle, analogActionHandle, originsOut);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamController_GetGlyphForActionOrigin(intptr_t instancePtr, EControllerActionOrigin eOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetGlyphForActionOrigin(eOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamController_GetStringForActionOrigin(intptr_t instancePtr, EControllerActionOrigin eOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetStringForActionOrigin(eOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamController_StopAnalogActionMomentum(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t eAction)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->StopAnalogActionMomentum(controllerHandle, eAction);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API struct InputMotionData_t SteamAPI_ISteamController_GetMotionData(intptr_t instancePtr, ControllerHandle_t controllerHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetMotionData(controllerHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamController_TriggerHapticPulse(intptr_t instancePtr, ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->TriggerHapticPulse(controllerHandle, eTargetPad, usDurationMicroSec);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamController_TriggerRepeatedHapticPulse(intptr_t instancePtr, ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec, unsigned short usOffMicroSec, unsigned short unRepeat, unsigned int nFlags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->TriggerRepeatedHapticPulse(controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamController_TriggerVibration(intptr_t instancePtr, ControllerHandle_t controllerHandle, unsigned short usLeftSpeed, unsigned short usRightSpeed)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->TriggerVibration(controllerHandle, usLeftSpeed, usRightSpeed);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamController_SetLEDColor(intptr_t instancePtr, ControllerHandle_t controllerHandle, uint8 nColorR, uint8 nColorG, uint8 nColorB, unsigned int nFlags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->SetLEDColor(controllerHandle, nColorR, nColorG, nColorB, nFlags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamController_ShowBindingPanel(intptr_t instancePtr, ControllerHandle_t controllerHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->ShowBindingPanel(controllerHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ESteamInputType SteamAPI_ISteamController_GetInputTypeForHandle(intptr_t instancePtr, ControllerHandle_t controllerHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetInputTypeForHandle(controllerHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API ControllerHandle_t SteamAPI_ISteamController_GetControllerForGamepadIndex(intptr_t instancePtr, int nIndex)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetControllerForGamepadIndex(nIndex);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamController_GetGamepadIndexForController(intptr_t instancePtr, ControllerHandle_t ulControllerHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetGamepadIndexForController(ulControllerHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamController_GetStringForXboxOrigin(intptr_t instancePtr, EXboxOrigin eOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetStringForXboxOrigin(eOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamController_GetGlyphForXboxOrigin(intptr_t instancePtr, EXboxOrigin eOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetGlyphForXboxOrigin(eOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EControllerActionOrigin SteamAPI_ISteamController_GetActionOriginFromXboxOrigin(intptr_t instancePtr, ControllerHandle_t controllerHandle, EXboxOrigin eOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetActionOriginFromXboxOrigin_(controllerHandle, eOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EControllerActionOrigin SteamAPI_ISteamController_TranslateActionOrigin(intptr_t instancePtr, ESteamInputType eDestinationInputType, EControllerActionOrigin eSourceOrigin)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->TranslateActionOrigin(eDestinationInputType, eSourceOrigin);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamController_GetControllerBindingRevision(intptr_t instancePtr, ControllerHandle_t controllerHandle, int * pMajor, int * pMinor)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_controller)->GetControllerBindingRevision(controllerHandle, pMajor, pMinor);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryUserUGCRequest(intptr_t instancePtr, AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint32 unPage)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->CreateQueryUserUGCRequest(unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(intptr_t instancePtr, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint32 unPage)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
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-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, pchCursor);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest(intptr_t instancePtr, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->CreateQueryUGCDetailsRequest(pvecPublishedFileID, unNumPublishedFileIDs);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SendQueryUGCRequest(intptr_t instancePtr, UGCQueryHandle_t handle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SendQueryUGCRequest(handle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCResult(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, struct SteamUGCDetails_t * pDetails)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetQueryUGCResult(handle, index, pDetails);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCPreviewURL(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, char * pchURL, uint32 cchURLSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetQueryUGCPreviewURL(handle, index, pchURL, cchURLSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCMetadata(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, char * pchMetadata, uint32 cchMetadatasize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetQueryUGCMetadata(handle, index, pchMetadata, cchMetadatasize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCChildren(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, PublishedFileId_t * pvecPublishedFileID, uint32 cMaxEntries)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetQueryUGCChildren(handle, index, pvecPublishedFileID, cMaxEntries);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCStatistic(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, EItemStatistic eStatType, uint64 * pStatValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetQueryUGCStatistic(handle, index, eStatType, pStatValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetQueryUGCNumAdditionalPreviews(handle, index);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, char * pchOriginalFileName, uint32 cchOriginalFileNameSize, EItemPreviewType * pPreviewType)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetQueryUGCAdditionalPreview(handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetQueryUGCNumKeyValueTags(handle, index);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, uint32 keyValueTagIndex, char * pchKey, uint32 cchKeySize, char * pchValue, uint32 cchValueSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetQueryUGCKeyValueTag(handle, index, keyValueTagIndex, pchKey, cchKeySize, pchValue, cchValueSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag0(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, const char * pchKey, char * pchValue, uint32 cchValueSize)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetQueryUGCKeyValueTag(handle, index, pchKey, pchValue, cchValueSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(intptr_t instancePtr, UGCQueryHandle_t handle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->ReleaseQueryUGCRequest(handle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_AddRequiredTag(intptr_t instancePtr, UGCQueryHandle_t handle, const char * pTagName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->AddRequiredTag(handle, pTagName);
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_AddRequiredTagGroup(intptr_t instancePtr, UGCQueryHandle_t handle, const struct SteamParamStringArray_t * pTagGroups)
|
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->AddRequiredTagGroup(handle, pTagGroups);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_AddExcludedTag(intptr_t instancePtr, UGCQueryHandle_t handle, const char * pTagName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->AddExcludedTag(handle, pTagName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnOnlyIDs(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnOnlyIDs)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetReturnOnlyIDs(handle, bReturnOnlyIDs);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnKeyValueTags(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnKeyValueTags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetReturnKeyValueTags(handle, bReturnKeyValueTags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnLongDescription(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnLongDescription)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetReturnLongDescription(handle, bReturnLongDescription);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnMetadata(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnMetadata)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetReturnMetadata(handle, bReturnMetadata);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnChildren(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnChildren)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetReturnChildren(handle, bReturnChildren);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnAdditionalPreviews(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnAdditionalPreviews)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetReturnAdditionalPreviews(handle, bReturnAdditionalPreviews);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnTotalOnly(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnTotalOnly)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetReturnTotalOnly(handle, bReturnTotalOnly);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnPlaytimeStats(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 unDays)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetReturnPlaytimeStats(handle, unDays);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetLanguage(intptr_t instancePtr, UGCQueryHandle_t handle, const char * pchLanguage)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetLanguage(handle, pchLanguage);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetAllowCachedResponse(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 unMaxAgeSeconds)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetAllowCachedResponse(handle, unMaxAgeSeconds);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetCloudFileNameFilter(intptr_t instancePtr, UGCQueryHandle_t handle, const char * pMatchCloudFileName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetCloudFileNameFilter(handle, pMatchCloudFileName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetMatchAnyTag(intptr_t instancePtr, UGCQueryHandle_t handle, bool bMatchAnyTag)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetMatchAnyTag(handle, bMatchAnyTag);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetSearchText(intptr_t instancePtr, UGCQueryHandle_t handle, const char * pSearchText)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetSearchText(handle, pSearchText);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetRankedByTrendDays(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 unDays)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetRankedByTrendDays(handle, unDays);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_AddRequiredKeyValueTag(intptr_t instancePtr, UGCQueryHandle_t handle, const char * pKey, const char * pValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->AddRequiredKeyValueTag(handle, pKey, pValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RequestUGCDetails(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, uint32 unMaxAgeSeconds)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->RequestUGCDetails(nPublishedFileID, unMaxAgeSeconds);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_CreateItem(intptr_t instancePtr, AppId_t nConsumerAppId, EWorkshopFileType eFileType)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->CreateItem(nConsumerAppId, eFileType);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API UGCUpdateHandle_t SteamAPI_ISteamUGC_StartItemUpdate(intptr_t instancePtr, AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->StartItemUpdate(nConsumerAppId, nPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemTitle(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pchTitle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetItemTitle(handle, pchTitle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemDescription(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pchDescription)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetItemDescription(handle, pchDescription);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemUpdateLanguage(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pchLanguage)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetItemUpdateLanguage(handle, pchLanguage);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemMetadata(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pchMetaData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetItemMetadata(handle, pchMetaData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemVisibility(intptr_t instancePtr, UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetItemVisibility(handle, eVisibility);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemTags(intptr_t instancePtr, UGCUpdateHandle_t updateHandle, const struct SteamParamStringArray_t * pTags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetItemTags(updateHandle, pTags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemContent(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pszContentFolder)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetItemContent(handle, pszContentFolder);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemPreview(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pszPreviewFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetItemPreview(handle, pszPreviewFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_SetAllowLegacyUpload(intptr_t instancePtr, UGCUpdateHandle_t handle, bool bAllowLegacyUpload)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetAllowLegacyUpload(handle, bAllowLegacyUpload);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_RemoveAllItemKeyValueTags(intptr_t instancePtr, UGCUpdateHandle_t handle)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->RemoveAllItemKeyValueTags(handle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_RemoveItemKeyValueTags(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pchKey)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->RemoveItemKeyValueTags(handle, pchKey);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_AddItemKeyValueTag(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pchKey, const char * pchValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->AddItemKeyValueTag(handle, pchKey, pchValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_AddItemPreviewFile(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pszPreviewFile, EItemPreviewType type)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->AddItemPreviewFile(handle, pszPreviewFile, type);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_AddItemPreviewVideo(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pszVideoID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->AddItemPreviewVideo(handle, pszVideoID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_UpdateItemPreviewFile(intptr_t instancePtr, UGCUpdateHandle_t handle, uint32 index, const char * pszPreviewFile)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->UpdateItemPreviewFile(handle, index, pszPreviewFile);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_UpdateItemPreviewVideo(intptr_t instancePtr, UGCUpdateHandle_t handle, uint32 index, const char * pszVideoID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->UpdateItemPreviewVideo(handle, index, pszVideoID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_RemoveItemPreview(intptr_t instancePtr, UGCUpdateHandle_t handle, uint32 index)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->RemoveItemPreview(handle, index);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SubmitItemUpdate(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pchChangeNote)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SubmitItemUpdate(handle, pchChangeNote);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EItemUpdateStatus SteamAPI_ISteamUGC_GetItemUpdateProgress(intptr_t instancePtr, UGCUpdateHandle_t handle, uint64 * punBytesProcessed, uint64 * punBytesTotal)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetItemUpdateProgress(handle, punBytesProcessed, punBytesTotal);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SetUserItemVote(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, bool bVoteUp)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SetUserItemVote(nPublishedFileID, bVoteUp);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_GetUserItemVote(intptr_t instancePtr, PublishedFileId_t nPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetUserItemVote(nPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_AddItemToFavorites(intptr_t instancePtr, AppId_t nAppId, PublishedFileId_t nPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->AddItemToFavorites(nAppId, nPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveItemFromFavorites(intptr_t instancePtr, AppId_t nAppId, PublishedFileId_t nPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->RemoveItemFromFavorites(nAppId, nPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SubscribeItem(intptr_t instancePtr, PublishedFileId_t nPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SubscribeItem(nPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_UnsubscribeItem(intptr_t instancePtr, PublishedFileId_t nPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->UnsubscribeItem(nPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetNumSubscribedItems(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetNumSubscribedItems();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetSubscribedItems(intptr_t instancePtr, PublishedFileId_t * pvecPublishedFileID, uint32 cMaxEntries)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetSubscribedItems(pvecPublishedFileID, cMaxEntries);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetItemState(intptr_t instancePtr, PublishedFileId_t nPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetItemState(nPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_GetItemInstallInfo(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, uint64 * punSizeOnDisk, char * pchFolder, uint32 cchFolderSize, uint32 * punTimeStamp)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetItemInstallInfo(nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_GetItemDownloadInfo(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, uint64 * punBytesDownloaded, uint64 * punBytesTotal)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetItemDownloadInfo(nPublishedFileID, punBytesDownloaded, punBytesTotal);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_DownloadItem(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, bool bHighPriority)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->DownloadItem(nPublishedFileID, bHighPriority);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamUGC_BInitWorkshopForGameServer(intptr_t instancePtr, DepotId_t unWorkshopDepotID, const char * pszFolder)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->BInitWorkshopForGameServer(unWorkshopDepotID, pszFolder);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamUGC_SuspendDownloads(intptr_t instancePtr, bool bSuspend)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->SuspendDownloads(bSuspend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_StartPlaytimeTracking(intptr_t instancePtr, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->StartPlaytimeTracking(pvecPublishedFileID, unNumPublishedFileIDs);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_StopPlaytimeTracking(intptr_t instancePtr, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->StopPlaytimeTracking(pvecPublishedFileID, unNumPublishedFileIDs);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->StopPlaytimeTrackingForAllItems();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_AddDependency(intptr_t instancePtr, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->AddDependency(nParentPublishedFileID, nChildPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveDependency(intptr_t instancePtr, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->RemoveDependency(nParentPublishedFileID, nChildPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_AddAppDependency(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, AppId_t nAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->AddAppDependency(nPublishedFileID, nAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveAppDependency(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, AppId_t nAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->RemoveAppDependency(nPublishedFileID, nAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_GetAppDependencies(intptr_t instancePtr, PublishedFileId_t nPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->GetAppDependencies(nPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_DeleteItem(intptr_t instancePtr, PublishedFileId_t nPublishedFileID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
|
|
|
|
int test2 = ((char *)instancePtr - (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)->DeleteItem(nPublishedFileID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamAppList_GetNumInstalledApps(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamAppList *)instancePtr)->GetNumInstalledApps();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamAppList_GetInstalledApps(intptr_t instancePtr, AppId_t * pvecAppID, uint32 unMaxAppIDs)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamAppList *)instancePtr)->GetInstalledApps(pvecAppID, unMaxAppIDs);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamAppList_GetAppName(intptr_t instancePtr, AppId_t nAppID, char * pchName, int cchNameMax)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamAppList *)instancePtr)->GetAppName(nAppID, pchName, cchNameMax);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamAppList_GetAppInstallDir(intptr_t instancePtr, AppId_t nAppID, char * pchDirectory, int cchNameMax)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamAppList *)instancePtr)->GetAppInstallDir(nAppID, pchDirectory, cchNameMax);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamAppList_GetAppBuildId(intptr_t instancePtr, AppId_t nAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamAppList *)instancePtr)->GetAppBuildId(nAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
//return (get_steam_client()->steam_HTMLsurface)->DestructISteamHTMLSurface();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTMLSurface_Init(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->Init();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamHTMLSurface_Shutdown(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->Shutdown();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamHTMLSurface_CreateBrowser(intptr_t instancePtr, const char * pchUserAgent, const char * pchUserCSS)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->CreateBrowser(pchUserAgent, pchUserCSS);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_RemoveBrowser(intptr_t instancePtr, HHTMLBrowser unBrowserHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->RemoveBrowser(unBrowserHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_LoadURL(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, const char * pchURL, const char * pchPostData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->LoadURL(unBrowserHandle, pchURL, pchPostData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetSize(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, uint32 unWidth, uint32 unHeight)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->SetSize(unBrowserHandle, unWidth, unHeight);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_StopLoad(intptr_t instancePtr, HHTMLBrowser unBrowserHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->StopLoad(unBrowserHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_Reload(intptr_t instancePtr, HHTMLBrowser unBrowserHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->Reload(unBrowserHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_GoBack(intptr_t instancePtr, HHTMLBrowser unBrowserHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->GoBack(unBrowserHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_GoForward(intptr_t instancePtr, HHTMLBrowser unBrowserHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->GoForward(unBrowserHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_AddHeader(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, const char * pchKey, const char * pchValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->AddHeader(unBrowserHandle, pchKey, pchValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_ExecuteJavascript(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, const char * pchScript)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->ExecuteJavascript(unBrowserHandle, pchScript);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseUp(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->MouseUp(unBrowserHandle, eMouseButton);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseDown(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->MouseDown(unBrowserHandle, eMouseButton);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseDoubleClick(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->MouseDoubleClick(unBrowserHandle, eMouseButton);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseMove(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, int x, int y)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->MouseMove(unBrowserHandle, x, y);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseWheel(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, int32 nDelta)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->MouseWheel(unBrowserHandle, nDelta);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_KeyDown(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, uint32 nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers, bool bIsSystemKey)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->KeyDown(unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers, bIsSystemKey);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_KeyUp(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, uint32 nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->KeyUp(unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_KeyChar(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, uint32 cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->KeyChar(unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetHorizontalScroll(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, uint32 nAbsolutePixelScroll)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->SetHorizontalScroll(unBrowserHandle, nAbsolutePixelScroll);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetVerticalScroll(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, uint32 nAbsolutePixelScroll)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->SetVerticalScroll(unBrowserHandle, nAbsolutePixelScroll);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetKeyFocus(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, bool bHasKeyFocus)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->SetKeyFocus(unBrowserHandle, bHasKeyFocus);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_ViewSource(intptr_t instancePtr, HHTMLBrowser unBrowserHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->ViewSource(unBrowserHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_CopyToClipboard(intptr_t instancePtr, HHTMLBrowser unBrowserHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->CopyToClipboard(unBrowserHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_PasteFromClipboard(intptr_t instancePtr, HHTMLBrowser unBrowserHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->PasteFromClipboard(unBrowserHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_Find(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, const char * pchSearchStr, bool bCurrentlyInFind, bool bReverse)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->Find(unBrowserHandle, pchSearchStr, bCurrentlyInFind, bReverse);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_StopFind(intptr_t instancePtr, HHTMLBrowser unBrowserHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->StopFind(unBrowserHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_GetLinkAtPosition(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, int x, int y)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->GetLinkAtPosition(unBrowserHandle, x, y);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetCookie(intptr_t instancePtr, const char * pchHostname, const char * pchKey, const char * pchValue, const char * pchPath, RTime32 nExpires, bool bSecure, bool bHTTPOnly)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->SetCookie(pchHostname, pchKey, pchValue, pchPath, nExpires, bSecure, bHTTPOnly);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetPageScaleFactor(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->SetPageScaleFactor(unBrowserHandle, flZoom, nPointX, nPointY);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetBackgroundMode(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, bool bBackgroundMode)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->SetBackgroundMode(unBrowserHandle, bBackgroundMode);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, float flDPIScaling)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->SetDPIScalingFactor(unBrowserHandle, flDPIScaling);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_OpenDeveloperTools(intptr_t instancePtr, HHTMLBrowser unBrowserHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->OpenDeveloperTools(unBrowserHandle);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_AllowStartRequest(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, bool bAllowed)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->AllowStartRequest(unBrowserHandle, bAllowed);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_JSDialogResponse(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, bool bResult)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return (get_steam_client()->steam_HTMLsurface)->JSDialogResponse(unBrowserHandle, bResult);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EResult SteamAPI_ISteamInventory_GetResultStatus(intptr_t instancePtr, SteamInventoryResult_t resultHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GetResultItems(intptr_t instancePtr, SteamInventoryResult_t resultHandle, struct SteamItemDetails_t * pOutItemsArray, uint32 * punOutItemsArraySize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GetResultItemProperty(intptr_t instancePtr, SteamInventoryResult_t resultHandle, uint32 unItemIndex, const char * pchPropertyName, char * pchValueBuffer, uint32 * punValueBufferSizeOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamInventory_GetResultTimestamp(intptr_t instancePtr, SteamInventoryResult_t resultHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_CheckResultSteamID(intptr_t instancePtr, SteamInventoryResult_t resultHandle, class CSteamID steamIDExpected)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInventory_DestroyResult(intptr_t instancePtr, SteamInventoryResult_t resultHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GetAllItems(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GetItemsByID(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle, const SteamItemInstanceID_t * pInstanceIDs, uint32 unCountInstanceIDs)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_SerializeResult(intptr_t instancePtr, SteamInventoryResult_t resultHandle, void * pOutBuffer, uint32 * punOutBufferSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_DeserializeResult(intptr_t instancePtr, SteamInventoryResult_t * pOutResultHandle, const void * pBuffer, uint32 unBufferSize, bool bRESERVED_MUST_BE_FALSE)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GenerateItems(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle, const SteamItemDef_t * pArrayItemDefs, const uint32 * punArrayQuantity, uint32 unArrayLength)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GrantPromoItems(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_AddPromoItem(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle, SteamItemDef_t itemDef)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_AddPromoItems(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle, const SteamItemDef_t * pArrayItemDefs, uint32 unArrayLength)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_ConsumeItem(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle, SteamItemInstanceID_t itemConsume, uint32 unQuantity)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_ExchangeItems(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle, const SteamItemDef_t * pArrayGenerate, const uint32 * punArrayGenerateQuantity, uint32 unArrayGenerateLength, const SteamItemInstanceID_t * pArrayDestroy, const uint32 * punArrayDestroyQuantity, uint32 unArrayDestroyLength)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_TransferItemQuantity(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle, SteamItemInstanceID_t itemIdSource, uint32 unQuantity, SteamItemInstanceID_t itemIdDest)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamInventory_SendItemDropHeartbeat(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
auto ptr = get_steam_client()->steam_gameserver_inventory;
|
|
|
|
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
|
|
|
|
ptr = get_steam_client()->steam_inventory;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (ptr)->SendItemDropHeartbeat();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_TriggerItemDrop(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle, SteamItemDef_t dropListDefinition)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_TradeItems(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle, class CSteamID steamIDTradePartner, const SteamItemInstanceID_t * pArrayGive, const uint32 * pArrayGiveQuantity, uint32 nArrayGiveLength, const SteamItemInstanceID_t * pArrayGet, const uint32 * pArrayGetQuantity, uint32 nArrayGetLength)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_LoadItemDefinitions(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
auto ptr = get_steam_client()->steam_gameserver_inventory;
|
|
|
|
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
|
|
|
|
ptr = get_steam_client()->steam_inventory;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (ptr)->LoadItemDefinitions();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GetItemDefinitionIDs(intptr_t instancePtr, SteamItemDef_t * pItemDefIDs, uint32 * punItemDefIDsArraySize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GetItemDefinitionProperty(intptr_t instancePtr, SteamItemDef_t iDefinition, const char * pchPropertyName, char * pchValueBuffer, uint32 * punValueBufferSizeOut)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs(intptr_t instancePtr, class CSteamID steamID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs(intptr_t instancePtr, class CSteamID steamID, SteamItemDef_t * pItemDefIDs, uint32 * punItemDefIDsArraySize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamInventory_StartPurchase(intptr_t instancePtr, const SteamItemDef_t * pArrayItemDefs, const uint32 * punArrayQuantity, uint32 unArrayLength)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamInventory_RequestPrices(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
auto ptr = get_steam_client()->steam_gameserver_inventory;
|
|
|
|
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
|
|
|
|
ptr = get_steam_client()->steam_inventory;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (ptr)->RequestPrices();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamInventory_GetNumItemsWithPrices(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
auto ptr = get_steam_client()->steam_gameserver_inventory;
|
|
|
|
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
|
|
|
|
ptr = get_steam_client()->steam_inventory;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (ptr)->GetNumItemsWithPrices();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GetItemsWithPrices(intptr_t instancePtr, SteamItemDef_t * pArrayItemDefs, uint64 * pCurrentPrices, uint64 * pBasePrices, uint32 unArrayLength)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_GetItemPrice(intptr_t instancePtr, SteamItemDef_t iDefinition, uint64 * pCurrentPrice, uint64 * pBasePrice)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamInventoryUpdateHandle_t SteamAPI_ISteamInventory_StartUpdateProperties(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
auto ptr = get_steam_client()->steam_gameserver_inventory;
|
|
|
|
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
|
|
|
|
ptr = get_steam_client()->steam_inventory;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (ptr)->StartUpdateProperties();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_RemoveProperty(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_SetProperty(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, const char * pchPropertyValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_SetProperty0(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, bool bValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_SetProperty1(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, int64 nValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_SetProperty2(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, float flValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamInventory_SubmitUpdateProperties(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamInventoryResult_t * pResultHandle)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
|
|
|
|
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamVideo_GetVideoURL(intptr_t instancePtr, AppId_t unVideoAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamVideo *)instancePtr)->GetVideoURL(unVideoAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamVideo_IsBroadcasting(intptr_t instancePtr, int * pnNumViewers)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamVideo *)instancePtr)->IsBroadcasting(pnNumViewers);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamVideo_GetOPFSettings(intptr_t instancePtr, AppId_t unVideoAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamVideo *)instancePtr)->GetOPFSettings(unVideoAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamVideo_GetOPFStringForApp(intptr_t instancePtr, AppId_t unVideoAppID, char * pchBuffer, int32 * pnBufferSize)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamVideo *)instancePtr)->GetOPFStringForApp(unVideoAppID, pchBuffer, pnBufferSize);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParentalSettings *)instancePtr)->BIsParentalLockEnabled();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsParentalLockLocked(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParentalSettings *)instancePtr)->BIsParentalLockLocked();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsAppBlocked(intptr_t instancePtr, AppId_t nAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParentalSettings *)instancePtr)->BIsAppBlocked(nAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsAppInBlockList(intptr_t instancePtr, AppId_t nAppID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParentalSettings *)instancePtr)->BIsAppInBlockList(nAppID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsFeatureBlocked(intptr_t instancePtr, EParentalFeature eFeature)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParentalSettings *)instancePtr)->BIsFeatureBlocked(eFeature);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList(intptr_t instancePtr, EParentalFeature eFeature)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamParentalSettings *)instancePtr)->BIsFeatureInBlockList(eFeature);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamRemotePlay_GetSessionCount(intptr_t instancePtr)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return ((ISteamRemotePlay *)instancePtr)->GetSessionCount();
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API RemotePlaySessionID_t SteamAPI_ISteamRemotePlay_GetSessionID(intptr_t instancePtr, int iSessionIndex)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return ((ISteamRemotePlay *)instancePtr)->GetSessionID(iSessionIndex);
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamRemotePlay_GetSessionSteamID(intptr_t instancePtr, RemotePlaySessionID_t unSessionID)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return ((ISteamRemotePlay *)instancePtr)->GetSessionSteamID(unSessionID).ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API const char * SteamAPI_ISteamRemotePlay_GetSessionClientName(intptr_t instancePtr, RemotePlaySessionID_t unSessionID)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return ((ISteamRemotePlay *)instancePtr)->GetSessionClientName(unSessionID);
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API ESteamDeviceFormFactor SteamAPI_ISteamRemotePlay_GetSessionClientFormFactor(intptr_t instancePtr, RemotePlaySessionID_t unSessionID)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return ((ISteamRemotePlay *)instancePtr)->GetSessionClientFormFactor(unSessionID);
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemotePlay_BGetSessionClientResolution(intptr_t instancePtr, RemotePlaySessionID_t unSessionID, int * pnResolutionX, int * pnResolutionY)
|
2019-07-28 21:02:09 +08:00
|
|
|
{
|
|
|
|
return ((ISteamRemotePlay *)instancePtr)->BGetSessionClientResolution(unSessionID, pnResolutionX, pnResolutionY);
|
|
|
|
}
|
|
|
|
|
2019-12-10 01:49:55 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamRemotePlay_BSendRemotePlayTogetherInvite(intptr_t instancePtr, class CSteamID steamIDFriend)
|
|
|
|
{
|
|
|
|
return ((ISteamRemotePlay *)instancePtr)->BSendRemotePlayTogetherInvite(steamIDFriend);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServer_InitGameServer(intptr_t instancePtr, uint32 unIP, uint16 usGamePort, uint16 usQueryPort, uint32 unFlags, AppId_t nGameAppId, const char * pchVersionString)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->InitGameServer(unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetProduct(intptr_t instancePtr, const char * pszProduct)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetProduct(pszProduct);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetGameDescription(intptr_t instancePtr, const char * pszGameDescription)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetGameDescription(pszGameDescription);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetModDir(intptr_t instancePtr, const char * pszModDir)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetModDir(pszModDir);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetDedicatedServer(intptr_t instancePtr, bool bDedicated)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetDedicatedServer(bDedicated);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_LogOn(intptr_t instancePtr, const char * pszToken)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->LogOn(pszToken);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_LogOnAnonymous(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->LogOnAnonymous();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_LogOff(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->LogOff();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServer_BLoggedOn(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->BLoggedOn();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServer_BSecure(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->BSecure();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamGameServer_GetSteamID(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->GetSteamID().ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServer_WasRestartRequested(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->WasRestartRequested();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetMaxPlayerCount(intptr_t instancePtr, int cPlayersMax)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetMaxPlayerCount(cPlayersMax);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetBotPlayerCount(intptr_t instancePtr, int cBotplayers)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetBotPlayerCount(cBotplayers);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetServerName(intptr_t instancePtr, const char * pszServerName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetServerName(pszServerName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetMapName(intptr_t instancePtr, const char * pszMapName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetMapName(pszMapName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetPasswordProtected(intptr_t instancePtr, bool bPasswordProtected)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetPasswordProtected(bPasswordProtected);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetSpectatorPort(intptr_t instancePtr, uint16 unSpectatorPort)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetSpectatorPort(unSpectatorPort);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetSpectatorServerName(intptr_t instancePtr, const char * pszSpectatorServerName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetSpectatorServerName(pszSpectatorServerName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_ClearAllKeyValues(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->ClearAllKeyValues();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetKeyValue(intptr_t instancePtr, const char * pKey, const char * pValue)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetKeyValue(pKey, pValue);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetGameTags(intptr_t instancePtr, const char * pchGameTags)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetGameTags(pchGameTags);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetGameData(intptr_t instancePtr, const char * pchGameData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetGameData(pchGameData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetRegion(intptr_t instancePtr, const char * pszRegion)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetRegion(pszRegion);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate(intptr_t instancePtr, uint32 unIPClient, const void * pvAuthBlob, uint32 cubAuthBlobSize, class CSteamID * pSteamIDUser)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SendUserConnectAndAuthenticate(unIPClient, pvAuthBlob, cubAuthBlobSize, pSteamIDUser);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API uint64 SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->CreateUnauthenticatedUserConnection().ConvertToUint64();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SendUserDisconnect(intptr_t instancePtr, class CSteamID steamIDUser)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SendUserDisconnect(steamIDUser);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServer_BUpdateUserData(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchPlayerName, uint32 uScore)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->BUpdateUserData(steamIDUser, pchPlayerName, uScore);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API HAuthTicket SteamAPI_ISteamGameServer_GetAuthSessionTicket(intptr_t instancePtr, void * pTicket, int cbMaxTicket, uint32 * pcbTicket)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->GetAuthSessionTicket(pTicket, cbMaxTicket, pcbTicket);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EBeginAuthSessionResult SteamAPI_ISteamGameServer_BeginAuthSession(intptr_t instancePtr, const void * pAuthTicket, int cbAuthTicket, class CSteamID steamID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->BeginAuthSession(pAuthTicket, cbAuthTicket, steamID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_EndAuthSession(intptr_t instancePtr, class CSteamID steamID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->EndAuthSession(steamID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_CancelAuthTicket(intptr_t instancePtr, HAuthTicket hAuthTicket)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->CancelAuthTicket(hAuthTicket);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API EUserHasLicenseForAppResult SteamAPI_ISteamGameServer_UserHasLicenseForApp(intptr_t instancePtr, class CSteamID steamID, AppId_t appID)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->UserHasLicenseForApp(steamID, appID);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServer_RequestUserGroupStatus(intptr_t instancePtr, class CSteamID steamIDUser, class CSteamID steamIDGroup)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->RequestUserGroupStatus(steamIDUser, steamIDGroup);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_GetGameplayStats(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->GetGameplayStats();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServer_GetServerReputation(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->GetServerReputation();
|
|
|
|
}
|
|
|
|
|
2020-01-18 00:36:46 +08:00
|
|
|
STEAMAPI_API uint32 SteamAPI_ISteamGameServer_GetPublicIP(intptr_t instancePtr, void *instancePtr_possible)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
2019-12-10 01:49:55 +08:00
|
|
|
//TODO: check if this actually works (ret value changed from uint32 to struct)
|
2020-01-18 00:36:46 +08:00
|
|
|
if (steamclient_has_ipv6_functions()) {
|
|
|
|
return ((ISteamGameServer012 *)instancePtr_possible)->GetPublicIP_old();
|
|
|
|
} else {
|
|
|
|
return ((ISteamGameServer012 *)instancePtr)->GetPublicIP_old();
|
|
|
|
}
|
2019-04-14 00:21:56 +08:00
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServer_HandleIncomingPacket(intptr_t instancePtr, const void * pData, int cbData, uint32 srcIP, uint16 srcPort)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->HandleIncomingPacket(pData, cbData, srcIP, srcPort);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API int SteamAPI_ISteamGameServer_GetNextOutgoingPacket(intptr_t instancePtr, void * pOut, int cbMaxOut, uint32 * pNetAdr, uint16 * pPort)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->GetNextOutgoingPacket(pOut, cbMaxOut, pNetAdr, pPort);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_EnableHeartbeats(intptr_t instancePtr, bool bActive)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->EnableHeartbeats(bActive);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_SetHeartbeatInterval(intptr_t instancePtr, int iHeartbeatInterval)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->SetHeartbeatInterval(iHeartbeatInterval);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API void SteamAPI_ISteamGameServer_ForceHeartbeat(intptr_t instancePtr)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->ForceHeartbeat();
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServer_AssociateWithClan(intptr_t instancePtr, class CSteamID steamIDClan)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->AssociateWithClan(steamIDClan);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility(intptr_t instancePtr, class CSteamID steamIDNewPlayer)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServer *)instancePtr)->ComputeNewPlayerCompatibility(steamIDNewPlayer);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServerStats_RequestUserStats(intptr_t instancePtr, class CSteamID steamIDUser)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServerStats *)instancePtr)->RequestUserStats(steamIDUser);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_GetUserStat(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, int32 * pData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServerStats *)instancePtr)->GetUserStat(steamIDUser, pchName, pData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_GetUserStat0(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, float * pData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServerStats *)instancePtr)->GetUserStat(steamIDUser, pchName, pData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_GetUserAchievement(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, bool * pbAchieved)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServerStats *)instancePtr)->GetUserAchievement(steamIDUser, pchName, pbAchieved);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_SetUserStat(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, int32 nData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServerStats *)instancePtr)->SetUserStat(steamIDUser, pchName, nData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_SetUserStat0(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, float fData)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServerStats *)instancePtr)->SetUserStat(steamIDUser, pchName, fData);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, float flCountThisSession, double dSessionLength)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServerStats *)instancePtr)->UpdateUserAvgRateStat(steamIDUser, pchName, flCountThisSession, dSessionLength);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_SetUserAchievement(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServerStats *)instancePtr)->SetUserAchievement(steamIDUser, pchName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_ClearUserAchievement(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServerStats *)instancePtr)->ClearUserAchievement(steamIDUser, pchName);
|
|
|
|
}
|
|
|
|
|
2019-08-18 06:02:15 +08:00
|
|
|
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServerStats_StoreUserStats(intptr_t instancePtr, class CSteamID steamIDUser)
|
2019-04-14 00:21:56 +08:00
|
|
|
{
|
|
|
|
return ((ISteamGameServerStats *)instancePtr)->StoreUserStats(steamIDUser);
|
|
|
|
}
|