2020-09-10 22:02:46 +00:00
|
|
|
#ifndef STEAM_STEAM_API_FLAT_H
|
|
|
|
#define STEAM_STEAM_API_FLAT_H
|
2020-08-20 10:17:44 +00:00
|
|
|
|
|
|
|
#include <base/dynamic.h>
|
|
|
|
|
2020-09-06 15:08:38 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2020-08-20 10:17:44 +00:00
|
|
|
#ifndef STEAMAPI
|
|
|
|
#define STEAMAPI DYNAMIC_IMPORT
|
|
|
|
#endif
|
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
extern "C" {
|
2020-08-20 10:17:44 +00:00
|
|
|
|
2020-09-06 15:08:38 +00:00
|
|
|
typedef uint64_t CSteamID;
|
|
|
|
typedef int32_t HSteamPipe;
|
|
|
|
typedef int32_t HSteamUser;
|
|
|
|
|
|
|
|
struct CallbackMsg_t
|
|
|
|
{
|
|
|
|
HSteamUser m_hSteamUser;
|
|
|
|
int m_iCallback;
|
|
|
|
unsigned char *m_pubParam;
|
|
|
|
int m_cubParam;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GameRichPresenceJoinRequested_t
|
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
k_iCallback = 337
|
|
|
|
};
|
2020-09-06 15:08:38 +00:00
|
|
|
CSteamID m_steamIDFriend;
|
|
|
|
char m_rgchConnect[256];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct NewUrlLaunchParameters_t
|
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
k_iCallback = 1014
|
|
|
|
};
|
2020-09-06 15:08:38 +00:00
|
|
|
unsigned char m_EmptyStructDontUse;
|
|
|
|
};
|
|
|
|
|
2020-09-01 22:32:22 +00:00
|
|
|
struct ISteamApps;
|
2020-08-20 10:17:44 +00:00
|
|
|
struct ISteamFriends;
|
|
|
|
|
|
|
|
STEAMAPI bool SteamAPI_Init(); // Returns true on success.
|
2020-09-06 15:08:38 +00:00
|
|
|
STEAMAPI HSteamPipe SteamAPI_GetHSteamPipe();
|
2020-08-20 10:17:44 +00:00
|
|
|
STEAMAPI void SteamAPI_Shutdown();
|
2020-09-01 22:32:22 +00:00
|
|
|
|
2020-09-06 15:08:38 +00:00
|
|
|
STEAMAPI void SteamAPI_ManualDispatch_Init();
|
|
|
|
STEAMAPI void SteamAPI_ManualDispatch_FreeLastCallback(HSteamPipe SteamPipe);
|
|
|
|
STEAMAPI bool SteamAPI_ManualDispatch_GetNextCallback(HSteamPipe SteamPipe, CallbackMsg_t *pCallbackMsg);
|
|
|
|
STEAMAPI void SteamAPI_ManualDispatch_RunFrame(HSteamPipe SteamPipe);
|
|
|
|
|
2020-09-01 22:32:22 +00:00
|
|
|
STEAMAPI ISteamApps *SteamAPI_SteamApps_v008();
|
|
|
|
STEAMAPI int SteamAPI_ISteamApps_GetLaunchCommandLine(ISteamApps *pSelf, char *pBuffer, int BufferSize);
|
|
|
|
STEAMAPI const char *SteamAPI_ISteamApps_GetLaunchQueryParam(ISteamApps *pSelf, const char *pKey);
|
|
|
|
|
2020-08-20 10:17:44 +00:00
|
|
|
STEAMAPI ISteamFriends *SteamAPI_SteamFriends_v017();
|
2020-09-01 22:32:22 +00:00
|
|
|
STEAMAPI void SteamAPI_ISteamFriends_ClearRichPresence(ISteamFriends *pSelf);
|
2020-08-20 10:17:44 +00:00
|
|
|
STEAMAPI const char *SteamAPI_ISteamFriends_GetPersonaName(ISteamFriends *pSelf);
|
2020-09-01 22:32:22 +00:00
|
|
|
STEAMAPI bool SteamAPI_ISteamFriends_SetRichPresence(ISteamFriends *pSelf, const char *pKey, const char *pValue);
|
2020-08-20 10:17:44 +00:00
|
|
|
}
|
|
|
|
|
2020-09-10 22:02:46 +00:00
|
|
|
#endif // STEAM_STEAM_API_FLAT_H
|