mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-07-27 17:41:49 +03:00
Network: Update to latest Steamworks SDK ABI.
This is mostly to support AArch64.
This commit is contained in:
@@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
/* Steamworks interface versions */
|
/* Steamworks interface versions */
|
||||||
|
|
||||||
#define VVVVVV_STEAMCLIENT "SteamClient017"
|
#define VVVVVV_STEAMCLIENT "SteamClient023"
|
||||||
#define VVVVVV_STEAMUSERSTATS "STEAMUSERSTATS_INTERFACE_VERSION011"
|
#define VVVVVV_STEAMUSERSTATS "STEAMUSERSTATS_INTERFACE_VERSION013"
|
||||||
#define VVVVVV_STEAMSCREENSHOTS "STEAMSCREENSHOTS_INTERFACE_VERSION003"
|
#define VVVVVV_STEAMSCREENSHOTS "STEAMSCREENSHOTS_INTERFACE_VERSION003"
|
||||||
|
|
||||||
/* Shared object file name */
|
/* Shared object file name */
|
||||||
@@ -45,8 +45,16 @@ struct SteamAPICallCompleted_t
|
|||||||
uint32_t m_cubParam;
|
uint32_t m_cubParam;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef enum ESteamAPIInitResult
|
||||||
|
{
|
||||||
|
k_ESteamAPIInitResult_OK = 0,
|
||||||
|
k_ESteamAPIInitResult_FailedGeneric = 1,
|
||||||
|
k_ESteamAPIInitResult_NoSteamClient = 2,
|
||||||
|
k_ESteamAPIInitResult_VersionMismatch = 3,
|
||||||
|
} ESteamAPIInitResult;
|
||||||
|
|
||||||
#define FUNC_LIST \
|
#define FUNC_LIST \
|
||||||
FOREACH_FUNC(uint8_t, SteamAPI_Init, (void)) \
|
FOREACH_FUNC(ESteamAPIInitResult, SteamAPI_InitFlat, (void*)) \
|
||||||
FOREACH_FUNC(void, SteamAPI_Shutdown, (void)) \
|
FOREACH_FUNC(void, SteamAPI_Shutdown, (void)) \
|
||||||
FOREACH_FUNC(void, SteamAPI_RunCallbacks, (void)) \
|
FOREACH_FUNC(void, SteamAPI_RunCallbacks, (void)) \
|
||||||
FOREACH_FUNC(struct ISteamClient*, SteamInternal_CreateInterface, (const char*)) \
|
FOREACH_FUNC(struct ISteamClient*, SteamInternal_CreateInterface, (const char*)) \
|
||||||
@@ -58,7 +66,6 @@ struct SteamAPICallCompleted_t
|
|||||||
int32_t, \
|
int32_t, \
|
||||||
const char* \
|
const char* \
|
||||||
)) \
|
)) \
|
||||||
FOREACH_FUNC(uint8_t, SteamAPI_ISteamUserStats_RequestCurrentStats, (struct ISteamUserStats*)) \
|
|
||||||
FOREACH_FUNC(uint8_t, SteamAPI_ISteamUserStats_StoreStats, (struct ISteamUserStats*)) \
|
FOREACH_FUNC(uint8_t, SteamAPI_ISteamUserStats_StoreStats, (struct ISteamUserStats*)) \
|
||||||
FOREACH_FUNC(uint8_t, SteamAPI_ISteamUserStats_SetAchievement, ( \
|
FOREACH_FUNC(uint8_t, SteamAPI_ISteamUserStats_SetAchievement, ( \
|
||||||
struct ISteamUserStats*, \
|
struct ISteamUserStats*, \
|
||||||
@@ -177,7 +184,7 @@ int32_t STEAM_init(void)
|
|||||||
FUNC_LIST
|
FUNC_LIST
|
||||||
#undef FOREACH_FUNC
|
#undef FOREACH_FUNC
|
||||||
|
|
||||||
if (!SteamAPI_Init())
|
if (SteamAPI_InitFlat(NULL) != k_ESteamAPIInitResult_OK)
|
||||||
{
|
{
|
||||||
vlog_error("Steamworks not initialized!");
|
vlog_error("Steamworks not initialized!");
|
||||||
ClearPointers();
|
ClearPointers();
|
||||||
@@ -207,7 +214,6 @@ int32_t STEAM_init(void)
|
|||||||
ClearPointers();
|
ClearPointers();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
SteamAPI_ISteamUserStats_RequestCurrentStats(steamUserStats);
|
|
||||||
steamScreenshots = SteamAPI_ISteamClient_GetISteamScreenshots(
|
steamScreenshots = SteamAPI_ISteamClient_GetISteamScreenshots(
|
||||||
steamClient,
|
steamClient,
|
||||||
steamUser,
|
steamUser,
|
||||||
|
|||||||
Reference in New Issue
Block a user