From c7d6c1f18b228eefbf9beaeefcf8cb5befbbb063 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Mon, 29 Oct 2018 11:21:49 -0500 Subject: [PATCH] lsteamclient: Call struct converters --- ...ller_STEAMCONTROLLER_INTERFACE_VERSION.cpp | 6 +- .../cppISteamFriends_SteamFriends005.cpp | 6 +- .../cppISteamFriends_SteamFriends006.cpp | 6 +- .../cppISteamFriends_SteamFriends007.cpp | 6 +- .../cppISteamFriends_SteamFriends008.cpp | 6 +- .../cppISteamFriends_SteamFriends009.cpp | 6 +- .../cppISteamFriends_SteamFriends011.cpp | 6 +- .../cppISteamFriends_SteamFriends013.cpp | 6 +- .../cppISteamFriends_SteamFriends014.cpp | 6 +- .../cppISteamFriends_SteamFriends015.cpp | 6 +- ...nventory_STEAMINVENTORY_INTERFACE_V001.cpp | 6 +- ...nventory_STEAMINVENTORY_INTERFACE_V002.cpp | 6 +- ...kingServers_SteamMatchMakingServers001.cpp | 66 +++++++++++++++-- ...kingServers_SteamMatchMakingServers002.cpp | 74 ++++++++++++++++--- ...cppISteamNetworking_SteamNetworking003.cpp | 6 +- ...cppISteamNetworking_SteamNetworking004.cpp | 6 +- ...cppISteamNetworking_SteamNetworking005.cpp | 6 +- ...TEAMREMOTESTORAGE_INTERFACE_VERSION005.cpp | 18 ++++- ...TEAMREMOTESTORAGE_INTERFACE_VERSION006.cpp | 36 +++++++-- ...TEAMREMOTESTORAGE_INTERFACE_VERSION008.cpp | 36 +++++++-- ...TEAMREMOTESTORAGE_INTERFACE_VERSION010.cpp | 36 +++++++-- ...TEAMREMOTESTORAGE_INTERFACE_VERSION011.cpp | 36 +++++++-- ...TEAMREMOTESTORAGE_INTERFACE_VERSION012.cpp | 36 +++++++-- ...TEAMREMOTESTORAGE_INTERFACE_VERSION013.cpp | 36 +++++++-- ...TEAMREMOTESTORAGE_INTERFACE_VERSION014.cpp | 36 +++++++-- ...SteamUGC_STEAMUGC_INTERFACE_VERSION001.cpp | 6 +- ...SteamUGC_STEAMUGC_INTERFACE_VERSION002.cpp | 12 ++- ...SteamUGC_STEAMUGC_INTERFACE_VERSION003.cpp | 12 ++- ...SteamUGC_STEAMUGC_INTERFACE_VERSION005.cpp | 12 ++- ...SteamUGC_STEAMUGC_INTERFACE_VERSION007.cpp | 12 ++- ...SteamUGC_STEAMUGC_INTERFACE_VERSION008.cpp | 12 ++- ...SteamUGC_STEAMUGC_INTERFACE_VERSION009.cpp | 12 ++- ...SteamUGC_STEAMUGC_INTERFACE_VERSION010.cpp | 12 ++- ...ts_STEAMUSERSTATS_INTERFACE_VERSION005.cpp | 6 +- ...ts_STEAMUSERSTATS_INTERFACE_VERSION006.cpp | 6 +- ...ts_STEAMUSERSTATS_INTERFACE_VERSION007.cpp | 6 +- ...ts_STEAMUSERSTATS_INTERFACE_VERSION009.cpp | 6 +- ...ts_STEAMUSERSTATS_INTERFACE_VERSION010.cpp | 6 +- ...ts_STEAMUSERSTATS_INTERFACE_VERSION011.cpp | 6 +- lsteamclient/cppISteamUser_SteamUser009.cpp | 11 ++- lsteamclient/cppISteamUser_SteamUser010.cpp | 5 +- lsteamclient/cppISteamUser_SteamUser011.cpp | 5 +- lsteamclient/cppISteamUser_SteamUser012.cpp | 5 +- lsteamclient/cppISteamUser_SteamUser013.cpp | 5 +- lsteamclient/cppISteamUser_SteamUser014.cpp | 5 +- lsteamclient/cppISteamUser_SteamUser016.cpp | 5 +- lsteamclient/cppISteamUser_SteamUser017.cpp | 5 +- lsteamclient/cppISteamUser_SteamUser018.cpp | 5 +- lsteamclient/cppISteamUser_SteamUser019.cpp | 5 +- lsteamclient/gen_wrapper.py | 53 ++++++++++++- 50 files changed, 630 insertions(+), 105 deletions(-) diff --git a/lsteamclient/cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.cpp b/lsteamclient/cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.cpp index a1a4dd6a..e3fe8605 100644 --- a/lsteamclient/cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.cpp +++ b/lsteamclient/cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.cpp @@ -22,7 +22,11 @@ void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_RunFrame(void *linux_ bool cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_GetControllerState(void *linux_side, uint32 unControllerIndex, SteamControllerState001_t * pState) { - return ((ISteamController*)linux_side)->GetControllerState((uint32)unControllerIndex, (SteamControllerState001_t *)pState); + SteamControllerState001_t lin_pState; + win_to_lin_struct_SteamControllerState001_t_134(pState, &lin_pState); + bool retval = ((ISteamController*)linux_side)->GetControllerState((uint32)unControllerIndex, &lin_pState); + lin_to_win_struct_SteamControllerState001_t_134(&lin_pState, pState); + return retval; } void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_TriggerHapticPulse(void *linux_side, uint32 unControllerIndex, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec) diff --git a/lsteamclient/cppISteamFriends_SteamFriends005.cpp b/lsteamclient/cppISteamFriends_SteamFriends005.cpp index 0c858b15..111060fe 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends005.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends005.cpp @@ -52,7 +52,11 @@ int cppISteamFriends_SteamFriends005_GetFriendAvatar(void *linux_side, CSteamID bool cppISteamFriends_SteamFriends005_GetFriendGamePlayed(void *linux_side, CSteamID steamIDFriend, FriendGameInfo_t * pFriendGameInfo) { - return ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, (FriendGameInfo_t *)pFriendGameInfo); + FriendGameInfo_t lin_pFriendGameInfo; + win_to_lin_struct_FriendGameInfo_t_109(pFriendGameInfo, &lin_pFriendGameInfo); + bool retval = ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, &lin_pFriendGameInfo); + lin_to_win_struct_FriendGameInfo_t_109(&lin_pFriendGameInfo, pFriendGameInfo); + return retval; } const char * cppISteamFriends_SteamFriends005_GetFriendPersonaNameHistory(void *linux_side, CSteamID steamIDFriend, int iPersonaName) diff --git a/lsteamclient/cppISteamFriends_SteamFriends006.cpp b/lsteamclient/cppISteamFriends_SteamFriends006.cpp index ee7a17c5..a7dfeed8 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends006.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends006.cpp @@ -52,7 +52,11 @@ int cppISteamFriends_SteamFriends006_GetFriendAvatar(void *linux_side, CSteamID bool cppISteamFriends_SteamFriends006_GetFriendGamePlayed(void *linux_side, CSteamID steamIDFriend, FriendGameInfo_t * pFriendGameInfo) { - return ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, (FriendGameInfo_t *)pFriendGameInfo); + FriendGameInfo_t lin_pFriendGameInfo; + win_to_lin_struct_FriendGameInfo_t_110(pFriendGameInfo, &lin_pFriendGameInfo); + bool retval = ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, &lin_pFriendGameInfo); + lin_to_win_struct_FriendGameInfo_t_110(&lin_pFriendGameInfo, pFriendGameInfo); + return retval; } const char * cppISteamFriends_SteamFriends006_GetFriendPersonaNameHistory(void *linux_side, CSteamID steamIDFriend, int iPersonaName) diff --git a/lsteamclient/cppISteamFriends_SteamFriends007.cpp b/lsteamclient/cppISteamFriends_SteamFriends007.cpp index 09b61271..d122bafb 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends007.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends007.cpp @@ -47,7 +47,11 @@ const char * cppISteamFriends_SteamFriends007_GetFriendPersonaName(void *linux_s bool cppISteamFriends_SteamFriends007_GetFriendGamePlayed(void *linux_side, CSteamID steamIDFriend, FriendGameInfo_t * pFriendGameInfo) { - return ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, (FriendGameInfo_t *)pFriendGameInfo); + FriendGameInfo_t lin_pFriendGameInfo; + win_to_lin_struct_FriendGameInfo_t_111(pFriendGameInfo, &lin_pFriendGameInfo); + bool retval = ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, &lin_pFriendGameInfo); + lin_to_win_struct_FriendGameInfo_t_111(&lin_pFriendGameInfo, pFriendGameInfo); + return retval; } const char * cppISteamFriends_SteamFriends007_GetFriendPersonaNameHistory(void *linux_side, CSteamID steamIDFriend, int iPersonaName) diff --git a/lsteamclient/cppISteamFriends_SteamFriends008.cpp b/lsteamclient/cppISteamFriends_SteamFriends008.cpp index 5e4c7754..33b2f8c8 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends008.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends008.cpp @@ -47,7 +47,11 @@ const char * cppISteamFriends_SteamFriends008_GetFriendPersonaName(void *linux_s bool cppISteamFriends_SteamFriends008_GetFriendGamePlayed(void *linux_side, CSteamID steamIDFriend, FriendGameInfo_t * pFriendGameInfo) { - return ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, (FriendGameInfo_t *)pFriendGameInfo); + FriendGameInfo_t lin_pFriendGameInfo; + win_to_lin_struct_FriendGameInfo_t_112(pFriendGameInfo, &lin_pFriendGameInfo); + bool retval = ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, &lin_pFriendGameInfo); + lin_to_win_struct_FriendGameInfo_t_112(&lin_pFriendGameInfo, pFriendGameInfo); + return retval; } const char * cppISteamFriends_SteamFriends008_GetFriendPersonaNameHistory(void *linux_side, CSteamID steamIDFriend, int iPersonaName) diff --git a/lsteamclient/cppISteamFriends_SteamFriends009.cpp b/lsteamclient/cppISteamFriends_SteamFriends009.cpp index ec75907e..976de1da 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends009.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends009.cpp @@ -47,7 +47,11 @@ const char * cppISteamFriends_SteamFriends009_GetFriendPersonaName(void *linux_s bool cppISteamFriends_SteamFriends009_GetFriendGamePlayed(void *linux_side, CSteamID steamIDFriend, FriendGameInfo_t * pFriendGameInfo) { - return ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, (FriendGameInfo_t *)pFriendGameInfo); + FriendGameInfo_t lin_pFriendGameInfo; + win_to_lin_struct_FriendGameInfo_t_116(pFriendGameInfo, &lin_pFriendGameInfo); + bool retval = ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, &lin_pFriendGameInfo); + lin_to_win_struct_FriendGameInfo_t_116(&lin_pFriendGameInfo, pFriendGameInfo); + return retval; } const char * cppISteamFriends_SteamFriends009_GetFriendPersonaNameHistory(void *linux_side, CSteamID steamIDFriend, int iPersonaName) diff --git a/lsteamclient/cppISteamFriends_SteamFriends011.cpp b/lsteamclient/cppISteamFriends_SteamFriends011.cpp index 4a9d6078..9db1cf02 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends011.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends011.cpp @@ -47,7 +47,11 @@ const char * cppISteamFriends_SteamFriends011_GetFriendPersonaName(void *linux_s bool cppISteamFriends_SteamFriends011_GetFriendGamePlayed(void *linux_side, CSteamID steamIDFriend, FriendGameInfo_t * pFriendGameInfo) { - return ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, (FriendGameInfo_t *)pFriendGameInfo); + FriendGameInfo_t lin_pFriendGameInfo; + win_to_lin_struct_FriendGameInfo_t_119(pFriendGameInfo, &lin_pFriendGameInfo); + bool retval = ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, &lin_pFriendGameInfo); + lin_to_win_struct_FriendGameInfo_t_119(&lin_pFriendGameInfo, pFriendGameInfo); + return retval; } const char * cppISteamFriends_SteamFriends011_GetFriendPersonaNameHistory(void *linux_side, CSteamID steamIDFriend, int iPersonaName) diff --git a/lsteamclient/cppISteamFriends_SteamFriends013.cpp b/lsteamclient/cppISteamFriends_SteamFriends013.cpp index 96abe70d..83c1762c 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends013.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends013.cpp @@ -47,7 +47,11 @@ const char * cppISteamFriends_SteamFriends013_GetFriendPersonaName(void *linux_s bool cppISteamFriends_SteamFriends013_GetFriendGamePlayed(void *linux_side, CSteamID steamIDFriend, FriendGameInfo_t * pFriendGameInfo) { - return ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, (FriendGameInfo_t *)pFriendGameInfo); + FriendGameInfo_t lin_pFriendGameInfo; + win_to_lin_struct_FriendGameInfo_t_125(pFriendGameInfo, &lin_pFriendGameInfo); + bool retval = ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, &lin_pFriendGameInfo); + lin_to_win_struct_FriendGameInfo_t_125(&lin_pFriendGameInfo, pFriendGameInfo); + return retval; } const char * cppISteamFriends_SteamFriends013_GetFriendPersonaNameHistory(void *linux_side, CSteamID steamIDFriend, int iPersonaName) diff --git a/lsteamclient/cppISteamFriends_SteamFriends014.cpp b/lsteamclient/cppISteamFriends_SteamFriends014.cpp index 4edce442..d6f30788 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends014.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends014.cpp @@ -47,7 +47,11 @@ const char * cppISteamFriends_SteamFriends014_GetFriendPersonaName(void *linux_s bool cppISteamFriends_SteamFriends014_GetFriendGamePlayed(void *linux_side, CSteamID steamIDFriend, FriendGameInfo_t * pFriendGameInfo) { - return ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, (FriendGameInfo_t *)pFriendGameInfo); + FriendGameInfo_t lin_pFriendGameInfo; + win_to_lin_struct_FriendGameInfo_t_131(pFriendGameInfo, &lin_pFriendGameInfo); + bool retval = ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, &lin_pFriendGameInfo); + lin_to_win_struct_FriendGameInfo_t_131(&lin_pFriendGameInfo, pFriendGameInfo); + return retval; } const char * cppISteamFriends_SteamFriends014_GetFriendPersonaNameHistory(void *linux_side, CSteamID steamIDFriend, int iPersonaName) diff --git a/lsteamclient/cppISteamFriends_SteamFriends015.cpp b/lsteamclient/cppISteamFriends_SteamFriends015.cpp index 1c3c002e..085debf8 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends015.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends015.cpp @@ -47,7 +47,11 @@ const char * cppISteamFriends_SteamFriends015_GetFriendPersonaName(void *linux_s bool cppISteamFriends_SteamFriends015_GetFriendGamePlayed(void *linux_side, CSteamID steamIDFriend, FriendGameInfo_t * pFriendGameInfo) { - return ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, (FriendGameInfo_t *)pFriendGameInfo); + FriendGameInfo_t lin_pFriendGameInfo; + win_to_lin_struct_FriendGameInfo_t_142(pFriendGameInfo, &lin_pFriendGameInfo); + bool retval = ((ISteamFriends*)linux_side)->GetFriendGamePlayed((CSteamID)steamIDFriend, &lin_pFriendGameInfo); + lin_to_win_struct_FriendGameInfo_t_142(&lin_pFriendGameInfo, pFriendGameInfo); + return retval; } const char * cppISteamFriends_SteamFriends015_GetFriendPersonaNameHistory(void *linux_side, CSteamID steamIDFriend, int iPersonaName) diff --git a/lsteamclient/cppISteamInventory_STEAMINVENTORY_INTERFACE_V001.cpp b/lsteamclient/cppISteamInventory_STEAMINVENTORY_INTERFACE_V001.cpp index 10e3729c..c90f60da 100644 --- a/lsteamclient/cppISteamInventory_STEAMINVENTORY_INTERFACE_V001.cpp +++ b/lsteamclient/cppISteamInventory_STEAMINVENTORY_INTERFACE_V001.cpp @@ -12,7 +12,11 @@ EResult cppISteamInventory_STEAMINVENTORY_INTERFACE_V001_GetResultStatus(void *l bool cppISteamInventory_STEAMINVENTORY_INTERFACE_V001_GetResultItems(void *linux_side, SteamInventoryResult_t resultHandle, SteamItemDetails_t * pOutItemsArray, uint32 * punOutItemsArraySize) { - return ((ISteamInventory*)linux_side)->GetResultItems((SteamInventoryResult_t)resultHandle, (SteamItemDetails_t *)pOutItemsArray, (uint32 *)punOutItemsArraySize); + SteamItemDetails_t lin_pOutItemsArray; + win_to_lin_struct_SteamItemDetails_t_139(pOutItemsArray, &lin_pOutItemsArray); + bool retval = ((ISteamInventory*)linux_side)->GetResultItems((SteamInventoryResult_t)resultHandle, &lin_pOutItemsArray, (uint32 *)punOutItemsArraySize); + lin_to_win_struct_SteamItemDetails_t_139(&lin_pOutItemsArray, pOutItemsArray); + return retval; } uint32 cppISteamInventory_STEAMINVENTORY_INTERFACE_V001_GetResultTimestamp(void *linux_side, SteamInventoryResult_t resultHandle) diff --git a/lsteamclient/cppISteamInventory_STEAMINVENTORY_INTERFACE_V002.cpp b/lsteamclient/cppISteamInventory_STEAMINVENTORY_INTERFACE_V002.cpp index ef2565e3..a4c242e4 100644 --- a/lsteamclient/cppISteamInventory_STEAMINVENTORY_INTERFACE_V002.cpp +++ b/lsteamclient/cppISteamInventory_STEAMINVENTORY_INTERFACE_V002.cpp @@ -12,7 +12,11 @@ EResult cppISteamInventory_STEAMINVENTORY_INTERFACE_V002_GetResultStatus(void *l bool cppISteamInventory_STEAMINVENTORY_INTERFACE_V002_GetResultItems(void *linux_side, SteamInventoryResult_t resultHandle, SteamItemDetails_t * pOutItemsArray, uint32 * punOutItemsArraySize) { - return ((ISteamInventory*)linux_side)->GetResultItems((SteamInventoryResult_t)resultHandle, (SteamItemDetails_t *)pOutItemsArray, (uint32 *)punOutItemsArraySize); + SteamItemDetails_t lin_pOutItemsArray; + win_to_lin_struct_SteamItemDetails_t_142(pOutItemsArray, &lin_pOutItemsArray); + bool retval = ((ISteamInventory*)linux_side)->GetResultItems((SteamInventoryResult_t)resultHandle, &lin_pOutItemsArray, (uint32 *)punOutItemsArraySize); + lin_to_win_struct_SteamItemDetails_t_142(&lin_pOutItemsArray, pOutItemsArray); + return retval; } bool cppISteamInventory_STEAMINVENTORY_INTERFACE_V002_GetResultItemProperty(void *linux_side, SteamInventoryResult_t resultHandle, uint32 unItemIndex, const char * pchPropertyName, char * pchValueBuffer, uint32 * punValueBufferSizeOut) diff --git a/lsteamclient/cppISteamMatchmakingServers_SteamMatchMakingServers001.cpp b/lsteamclient/cppISteamMatchmakingServers_SteamMatchMakingServers001.cpp index 2175312d..42a04bd7 100644 --- a/lsteamclient/cppISteamMatchmakingServers_SteamMatchMakingServers001.cpp +++ b/lsteamclient/cppISteamMatchmakingServers_SteamMatchMakingServers001.cpp @@ -7,32 +7,70 @@ extern "C" { #endif void cppISteamMatchmakingServers_SteamMatchMakingServers001_RequestInternetServerList(void *linux_side, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - ((ISteamMatchmakingServers*)linux_side)->RequestInternetServerList((AppId_t)iApp, (MatchMakingKeyValuePair_t **)ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + MatchMakingKeyValuePair_t ** *lin_ppchFilters = malloc(sizeof(MatchMakingKeyValuePair_t **) * nFilters); + for(int i = 0; i < nFilters; ++i) + win_to_lin_struct_MatchMakingKeyValuePair_t **_105(ppchFilters[i], &lin_ppchFilters[i]); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_105(pRequestServersResponse, &lin_pRequestServersResponse); + ((ISteamMatchmakingServers*)linux_side)->RequestInternetServerList((AppId_t)iApp, &lin_ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_MatchMakingKeyValuePair_t *_105(&lin_ppchFilters, ppchFilters); + lin_to_win_struct_ISteamMatchmakingServerListResponse_105(&lin_pRequestServersResponse, pRequestServersResponse); } void cppISteamMatchmakingServers_SteamMatchMakingServers001_RequestLANServerList(void *linux_side, AppId_t iApp, ISteamMatchmakingServerListResponse * pRequestServersResponse) { + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_105(pRequestServersResponse, &lin_pRequestServersResponse); ((ISteamMatchmakingServers*)linux_side)->RequestLANServerList((AppId_t)iApp, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_ISteamMatchmakingServerListResponse_105(&lin_pRequestServersResponse, pRequestServersResponse); } void cppISteamMatchmakingServers_SteamMatchMakingServers001_RequestFriendsServerList(void *linux_side, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - ((ISteamMatchmakingServers*)linux_side)->RequestFriendsServerList((AppId_t)iApp, (MatchMakingKeyValuePair_t **)ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + MatchMakingKeyValuePair_t ** *lin_ppchFilters = malloc(sizeof(MatchMakingKeyValuePair_t **) * nFilters); + for(int i = 0; i < nFilters; ++i) + win_to_lin_struct_MatchMakingKeyValuePair_t **_105(ppchFilters[i], &lin_ppchFilters[i]); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_105(pRequestServersResponse, &lin_pRequestServersResponse); + ((ISteamMatchmakingServers*)linux_side)->RequestFriendsServerList((AppId_t)iApp, &lin_ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_MatchMakingKeyValuePair_t *_105(&lin_ppchFilters, ppchFilters); + lin_to_win_struct_ISteamMatchmakingServerListResponse_105(&lin_pRequestServersResponse, pRequestServersResponse); } void cppISteamMatchmakingServers_SteamMatchMakingServers001_RequestFavoritesServerList(void *linux_side, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - ((ISteamMatchmakingServers*)linux_side)->RequestFavoritesServerList((AppId_t)iApp, (MatchMakingKeyValuePair_t **)ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + MatchMakingKeyValuePair_t ** *lin_ppchFilters = malloc(sizeof(MatchMakingKeyValuePair_t **) * nFilters); + for(int i = 0; i < nFilters; ++i) + win_to_lin_struct_MatchMakingKeyValuePair_t **_105(ppchFilters[i], &lin_ppchFilters[i]); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_105(pRequestServersResponse, &lin_pRequestServersResponse); + ((ISteamMatchmakingServers*)linux_side)->RequestFavoritesServerList((AppId_t)iApp, &lin_ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_MatchMakingKeyValuePair_t *_105(&lin_ppchFilters, ppchFilters); + lin_to_win_struct_ISteamMatchmakingServerListResponse_105(&lin_pRequestServersResponse, pRequestServersResponse); } void cppISteamMatchmakingServers_SteamMatchMakingServers001_RequestHistoryServerList(void *linux_side, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - ((ISteamMatchmakingServers*)linux_side)->RequestHistoryServerList((AppId_t)iApp, (MatchMakingKeyValuePair_t **)ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + MatchMakingKeyValuePair_t ** *lin_ppchFilters = malloc(sizeof(MatchMakingKeyValuePair_t **) * nFilters); + for(int i = 0; i < nFilters; ++i) + win_to_lin_struct_MatchMakingKeyValuePair_t **_105(ppchFilters[i], &lin_ppchFilters[i]); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_105(pRequestServersResponse, &lin_pRequestServersResponse); + ((ISteamMatchmakingServers*)linux_side)->RequestHistoryServerList((AppId_t)iApp, &lin_ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_MatchMakingKeyValuePair_t *_105(&lin_ppchFilters, ppchFilters); + lin_to_win_struct_ISteamMatchmakingServerListResponse_105(&lin_pRequestServersResponse, pRequestServersResponse); } void cppISteamMatchmakingServers_SteamMatchMakingServers001_RequestSpectatorServerList(void *linux_side, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - ((ISteamMatchmakingServers*)linux_side)->RequestSpectatorServerList((AppId_t)iApp, (MatchMakingKeyValuePair_t **)ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + MatchMakingKeyValuePair_t ** *lin_ppchFilters = malloc(sizeof(MatchMakingKeyValuePair_t **) * nFilters); + for(int i = 0; i < nFilters; ++i) + win_to_lin_struct_MatchMakingKeyValuePair_t **_105(ppchFilters[i], &lin_ppchFilters[i]); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_105(pRequestServersResponse, &lin_pRequestServersResponse); + ((ISteamMatchmakingServers*)linux_side)->RequestSpectatorServerList((AppId_t)iApp, &lin_ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_MatchMakingKeyValuePair_t *_105(&lin_ppchFilters, ppchFilters); + lin_to_win_struct_ISteamMatchmakingServerListResponse_105(&lin_pRequestServersResponse, pRequestServersResponse); } gameserveritem_t * cppISteamMatchmakingServers_SteamMatchMakingServers001_GetServerDetails(void *linux_side, EMatchMakingType eType, int iServer) @@ -67,17 +105,29 @@ void cppISteamMatchmakingServers_SteamMatchMakingServers001_RefreshServer(void * HServerQuery cppISteamMatchmakingServers_SteamMatchMakingServers001_PingServer(void *linux_side, uint32 unIP, uint16 usPort, ISteamMatchmakingPingResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->PingServer((uint32)unIP, (uint16)usPort, (ISteamMatchmakingPingResponse *)pRequestServersResponse); + ISteamMatchmakingPingResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingPingResponse_105(pRequestServersResponse, &lin_pRequestServersResponse); + HServerQuery retval = ((ISteamMatchmakingServers*)linux_side)->PingServer((uint32)unIP, (uint16)usPort, &lin_pRequestServersResponse); + lin_to_win_struct_ISteamMatchmakingPingResponse_105(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } HServerQuery cppISteamMatchmakingServers_SteamMatchMakingServers001_PlayerDetails(void *linux_side, uint32 unIP, uint16 usPort, ISteamMatchmakingPlayersResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->PlayerDetails((uint32)unIP, (uint16)usPort, (ISteamMatchmakingPlayersResponse *)pRequestServersResponse); + ISteamMatchmakingPlayersResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingPlayersResponse_105(pRequestServersResponse, &lin_pRequestServersResponse); + HServerQuery retval = ((ISteamMatchmakingServers*)linux_side)->PlayerDetails((uint32)unIP, (uint16)usPort, &lin_pRequestServersResponse); + lin_to_win_struct_ISteamMatchmakingPlayersResponse_105(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } HServerQuery cppISteamMatchmakingServers_SteamMatchMakingServers001_ServerRules(void *linux_side, uint32 unIP, uint16 usPort, ISteamMatchmakingRulesResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->ServerRules((uint32)unIP, (uint16)usPort, (ISteamMatchmakingRulesResponse *)pRequestServersResponse); + ISteamMatchmakingRulesResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingRulesResponse_105(pRequestServersResponse, &lin_pRequestServersResponse); + HServerQuery retval = ((ISteamMatchmakingServers*)linux_side)->ServerRules((uint32)unIP, (uint16)usPort, &lin_pRequestServersResponse); + lin_to_win_struct_ISteamMatchmakingRulesResponse_105(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } void cppISteamMatchmakingServers_SteamMatchMakingServers001_CancelServerQuery(void *linux_side, HServerQuery hServerQuery) diff --git a/lsteamclient/cppISteamMatchmakingServers_SteamMatchMakingServers002.cpp b/lsteamclient/cppISteamMatchmakingServers_SteamMatchMakingServers002.cpp index 603c21fc..a79b68e1 100644 --- a/lsteamclient/cppISteamMatchmakingServers_SteamMatchMakingServers002.cpp +++ b/lsteamclient/cppISteamMatchmakingServers_SteamMatchMakingServers002.cpp @@ -7,32 +7,76 @@ extern "C" { #endif HServerListRequest cppISteamMatchmakingServers_SteamMatchMakingServers002_RequestInternetServerList(void *linux_side, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->RequestInternetServerList((AppId_t)iApp, (MatchMakingKeyValuePair_t **)ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + MatchMakingKeyValuePair_t ** *lin_ppchFilters = malloc(sizeof(MatchMakingKeyValuePair_t **) * nFilters); + for(int i = 0; i < nFilters; ++i) + win_to_lin_struct_MatchMakingKeyValuePair_t **_142(ppchFilters[i], &lin_ppchFilters[i]); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_142(pRequestServersResponse, &lin_pRequestServersResponse); + HServerListRequest retval = ((ISteamMatchmakingServers*)linux_side)->RequestInternetServerList((AppId_t)iApp, &lin_ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_MatchMakingKeyValuePair_t *_142(&lin_ppchFilters, ppchFilters); + lin_to_win_struct_ISteamMatchmakingServerListResponse_142(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } HServerListRequest cppISteamMatchmakingServers_SteamMatchMakingServers002_RequestLANServerList(void *linux_side, AppId_t iApp, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->RequestLANServerList((AppId_t)iApp, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_142(pRequestServersResponse, &lin_pRequestServersResponse); + HServerListRequest retval = ((ISteamMatchmakingServers*)linux_side)->RequestLANServerList((AppId_t)iApp, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_ISteamMatchmakingServerListResponse_142(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } HServerListRequest cppISteamMatchmakingServers_SteamMatchMakingServers002_RequestFriendsServerList(void *linux_side, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->RequestFriendsServerList((AppId_t)iApp, (MatchMakingKeyValuePair_t **)ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + MatchMakingKeyValuePair_t ** *lin_ppchFilters = malloc(sizeof(MatchMakingKeyValuePair_t **) * nFilters); + for(int i = 0; i < nFilters; ++i) + win_to_lin_struct_MatchMakingKeyValuePair_t **_142(ppchFilters[i], &lin_ppchFilters[i]); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_142(pRequestServersResponse, &lin_pRequestServersResponse); + HServerListRequest retval = ((ISteamMatchmakingServers*)linux_side)->RequestFriendsServerList((AppId_t)iApp, &lin_ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_MatchMakingKeyValuePair_t *_142(&lin_ppchFilters, ppchFilters); + lin_to_win_struct_ISteamMatchmakingServerListResponse_142(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } HServerListRequest cppISteamMatchmakingServers_SteamMatchMakingServers002_RequestFavoritesServerList(void *linux_side, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->RequestFavoritesServerList((AppId_t)iApp, (MatchMakingKeyValuePair_t **)ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + MatchMakingKeyValuePair_t ** *lin_ppchFilters = malloc(sizeof(MatchMakingKeyValuePair_t **) * nFilters); + for(int i = 0; i < nFilters; ++i) + win_to_lin_struct_MatchMakingKeyValuePair_t **_142(ppchFilters[i], &lin_ppchFilters[i]); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_142(pRequestServersResponse, &lin_pRequestServersResponse); + HServerListRequest retval = ((ISteamMatchmakingServers*)linux_side)->RequestFavoritesServerList((AppId_t)iApp, &lin_ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_MatchMakingKeyValuePair_t *_142(&lin_ppchFilters, ppchFilters); + lin_to_win_struct_ISteamMatchmakingServerListResponse_142(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } HServerListRequest cppISteamMatchmakingServers_SteamMatchMakingServers002_RequestHistoryServerList(void *linux_side, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->RequestHistoryServerList((AppId_t)iApp, (MatchMakingKeyValuePair_t **)ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + MatchMakingKeyValuePair_t ** *lin_ppchFilters = malloc(sizeof(MatchMakingKeyValuePair_t **) * nFilters); + for(int i = 0; i < nFilters; ++i) + win_to_lin_struct_MatchMakingKeyValuePair_t **_142(ppchFilters[i], &lin_ppchFilters[i]); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_142(pRequestServersResponse, &lin_pRequestServersResponse); + HServerListRequest retval = ((ISteamMatchmakingServers*)linux_side)->RequestHistoryServerList((AppId_t)iApp, &lin_ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_MatchMakingKeyValuePair_t *_142(&lin_ppchFilters, ppchFilters); + lin_to_win_struct_ISteamMatchmakingServerListResponse_142(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } HServerListRequest cppISteamMatchmakingServers_SteamMatchMakingServers002_RequestSpectatorServerList(void *linux_side, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->RequestSpectatorServerList((AppId_t)iApp, (MatchMakingKeyValuePair_t **)ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + MatchMakingKeyValuePair_t ** *lin_ppchFilters = malloc(sizeof(MatchMakingKeyValuePair_t **) * nFilters); + for(int i = 0; i < nFilters; ++i) + win_to_lin_struct_MatchMakingKeyValuePair_t **_142(ppchFilters[i], &lin_ppchFilters[i]); + ISteamMatchmakingServerListResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingServerListResponse_142(pRequestServersResponse, &lin_pRequestServersResponse); + HServerListRequest retval = ((ISteamMatchmakingServers*)linux_side)->RequestSpectatorServerList((AppId_t)iApp, &lin_ppchFilters, (uint32)nFilters, (ISteamMatchmakingServerListResponse *)pRequestServersResponse); + lin_to_win_struct_MatchMakingKeyValuePair_t *_142(&lin_ppchFilters, ppchFilters); + lin_to_win_struct_ISteamMatchmakingServerListResponse_142(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } void cppISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest(void *linux_side, HServerListRequest hServerListRequest) @@ -72,17 +116,29 @@ void cppISteamMatchmakingServers_SteamMatchMakingServers002_RefreshServer(void * HServerQuery cppISteamMatchmakingServers_SteamMatchMakingServers002_PingServer(void *linux_side, uint32 unIP, uint16 usPort, ISteamMatchmakingPingResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->PingServer((uint32)unIP, (uint16)usPort, (ISteamMatchmakingPingResponse *)pRequestServersResponse); + ISteamMatchmakingPingResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingPingResponse_142(pRequestServersResponse, &lin_pRequestServersResponse); + HServerQuery retval = ((ISteamMatchmakingServers*)linux_side)->PingServer((uint32)unIP, (uint16)usPort, &lin_pRequestServersResponse); + lin_to_win_struct_ISteamMatchmakingPingResponse_142(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } HServerQuery cppISteamMatchmakingServers_SteamMatchMakingServers002_PlayerDetails(void *linux_side, uint32 unIP, uint16 usPort, ISteamMatchmakingPlayersResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->PlayerDetails((uint32)unIP, (uint16)usPort, (ISteamMatchmakingPlayersResponse *)pRequestServersResponse); + ISteamMatchmakingPlayersResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingPlayersResponse_142(pRequestServersResponse, &lin_pRequestServersResponse); + HServerQuery retval = ((ISteamMatchmakingServers*)linux_side)->PlayerDetails((uint32)unIP, (uint16)usPort, &lin_pRequestServersResponse); + lin_to_win_struct_ISteamMatchmakingPlayersResponse_142(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } HServerQuery cppISteamMatchmakingServers_SteamMatchMakingServers002_ServerRules(void *linux_side, uint32 unIP, uint16 usPort, ISteamMatchmakingRulesResponse * pRequestServersResponse) { - return ((ISteamMatchmakingServers*)linux_side)->ServerRules((uint32)unIP, (uint16)usPort, (ISteamMatchmakingRulesResponse *)pRequestServersResponse); + ISteamMatchmakingRulesResponse lin_pRequestServersResponse; + win_to_lin_struct_ISteamMatchmakingRulesResponse_142(pRequestServersResponse, &lin_pRequestServersResponse); + HServerQuery retval = ((ISteamMatchmakingServers*)linux_side)->ServerRules((uint32)unIP, (uint16)usPort, &lin_pRequestServersResponse); + lin_to_win_struct_ISteamMatchmakingRulesResponse_142(&lin_pRequestServersResponse, pRequestServersResponse); + return retval; } void cppISteamMatchmakingServers_SteamMatchMakingServers002_CancelServerQuery(void *linux_side, HServerQuery hServerQuery) diff --git a/lsteamclient/cppISteamNetworking_SteamNetworking003.cpp b/lsteamclient/cppISteamNetworking_SteamNetworking003.cpp index 4c317827..4e483862 100644 --- a/lsteamclient/cppISteamNetworking_SteamNetworking003.cpp +++ b/lsteamclient/cppISteamNetworking_SteamNetworking003.cpp @@ -32,7 +32,11 @@ bool cppISteamNetworking_SteamNetworking003_CloseP2PSessionWithUser(void *linux_ bool cppISteamNetworking_SteamNetworking003_GetP2PSessionState(void *linux_side, CSteamID steamIDRemote, P2PSessionState_t * pConnectionState) { - return ((ISteamNetworking*)linux_side)->GetP2PSessionState((CSteamID)steamIDRemote, (P2PSessionState_t *)pConnectionState); + P2PSessionState_t lin_pConnectionState; + win_to_lin_struct_P2PSessionState_t_110(pConnectionState, &lin_pConnectionState); + bool retval = ((ISteamNetworking*)linux_side)->GetP2PSessionState((CSteamID)steamIDRemote, &lin_pConnectionState); + lin_to_win_struct_P2PSessionState_t_110(&lin_pConnectionState, pConnectionState); + return retval; } SNetListenSocket_t cppISteamNetworking_SteamNetworking003_CreateListenSocket(void *linux_side, int nVirtualP2PPort, uint32 nIP, uint16 nPort, bool bAllowUseOfPacketRelay) diff --git a/lsteamclient/cppISteamNetworking_SteamNetworking004.cpp b/lsteamclient/cppISteamNetworking_SteamNetworking004.cpp index 7e192b6f..2b1faee9 100644 --- a/lsteamclient/cppISteamNetworking_SteamNetworking004.cpp +++ b/lsteamclient/cppISteamNetworking_SteamNetworking004.cpp @@ -32,7 +32,11 @@ bool cppISteamNetworking_SteamNetworking004_CloseP2PSessionWithUser(void *linux_ bool cppISteamNetworking_SteamNetworking004_GetP2PSessionState(void *linux_side, CSteamID steamIDRemote, P2PSessionState_t * pConnectionState) { - return ((ISteamNetworking*)linux_side)->GetP2PSessionState((CSteamID)steamIDRemote, (P2PSessionState_t *)pConnectionState); + P2PSessionState_t lin_pConnectionState; + win_to_lin_struct_P2PSessionState_t_112(pConnectionState, &lin_pConnectionState); + bool retval = ((ISteamNetworking*)linux_side)->GetP2PSessionState((CSteamID)steamIDRemote, &lin_pConnectionState); + lin_to_win_struct_P2PSessionState_t_112(&lin_pConnectionState, pConnectionState); + return retval; } SNetListenSocket_t cppISteamNetworking_SteamNetworking004_CreateListenSocket(void *linux_side, int nVirtualP2PPort, uint32 nIP, uint16 nPort, bool bAllowUseOfPacketRelay) diff --git a/lsteamclient/cppISteamNetworking_SteamNetworking005.cpp b/lsteamclient/cppISteamNetworking_SteamNetworking005.cpp index f681bccd..d1a7a1a4 100644 --- a/lsteamclient/cppISteamNetworking_SteamNetworking005.cpp +++ b/lsteamclient/cppISteamNetworking_SteamNetworking005.cpp @@ -37,7 +37,11 @@ bool cppISteamNetworking_SteamNetworking005_CloseP2PChannelWithUser(void *linux_ bool cppISteamNetworking_SteamNetworking005_GetP2PSessionState(void *linux_side, CSteamID steamIDRemote, P2PSessionState_t * pConnectionState) { - return ((ISteamNetworking*)linux_side)->GetP2PSessionState((CSteamID)steamIDRemote, (P2PSessionState_t *)pConnectionState); + P2PSessionState_t lin_pConnectionState; + win_to_lin_struct_P2PSessionState_t_142(pConnectionState, &lin_pConnectionState); + bool retval = ((ISteamNetworking*)linux_side)->GetP2PSessionState((CSteamID)steamIDRemote, &lin_pConnectionState); + lin_to_win_struct_P2PSessionState_t_142(&lin_pConnectionState, pConnectionState); + return retval; } bool cppISteamNetworking_SteamNetworking005_AllowP2PPacketRelay(void *linux_side, bool bAllow) diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005.cpp index 9516d601..5ffdc641 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005.cpp @@ -117,17 +117,29 @@ UGCHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_GetCa SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishFile(void *linux_side, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->PublishFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_117(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_117(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile(void *linux_side, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_117(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_117(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_UpdatePublishedFile(void *linux_side, RemoteStorageUpdatePublishedFileRequest_t updatePublishedFileRequest) { - return ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFile((RemoteStorageUpdatePublishedFileRequest_t)updatePublishedFileRequest); + RemoteStorageUpdatePublishedFileRequest_t lin_updatePublishedFileRequest; + win_to_lin_struct_RemoteStorageUpdatePublishedFileRequest_t_117(&updatePublishedFileRequest, &lin_updatePublishedFileRequest); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFile(lin_updatePublishedFileRequest); + lin_to_win_struct_RemoteStorageUpdatePublishedFileRequest_t_117(&lin_updatePublishedFileRequest, &updatePublishedFileRequest); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_GetPublishedFileDetails(void *linux_side, PublishedFileId_t unPublishedFileId) diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006.cpp index 40599327..c1f06e0a 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006.cpp @@ -122,7 +122,11 @@ UGCHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_GetCa SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishWorkshopFile(void *linux_side, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { - return ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags, (EWorkshopFileType)eWorkshopFileType); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_119(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags, (EWorkshopFileType)eWorkshopFileType); + lin_to_win_struct_SteamParamStringArray_t_119(&lin_pTags, pTags); + return retval; } PublishedFileUpdateHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_CreatePublishedFileUpdateRequest(void *linux_side, PublishedFileId_t unPublishedFileId) @@ -157,7 +161,11 @@ bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublis bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFileTags(void *linux_side, PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_119(pTags, &lin_pTags); + bool retval = ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_119(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_CommitPublishedFileUpdate(void *linux_side, PublishedFileUpdateHandle_t updateHandle) @@ -217,12 +225,23 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_Ge SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_EnumerateUserSharedWorkshopFiles(void *linux_side, CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t * pRequiredTags, SteamParamStringArray_t * pExcludedTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, (SteamParamStringArray_t *)pRequiredTags, (SteamParamStringArray_t *)pExcludedTags); + SteamParamStringArray_t lin_pRequiredTags; + win_to_lin_struct_SteamParamStringArray_t_119(pRequiredTags, &lin_pRequiredTags); + SteamParamStringArray_t lin_pExcludedTags; + win_to_lin_struct_SteamParamStringArray_t_119(pExcludedTags, &lin_pExcludedTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, &lin_pRequiredTags, &lin_pExcludedTags); + lin_to_win_struct_SteamParamStringArray_t_119(&lin_pRequiredTags, pRequiredTags); + lin_to_win_struct_SteamParamStringArray_t_119(&lin_pExcludedTags, pExcludedTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishVideo(void *linux_side, const char * pchVideoURL, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->PublishVideo((const char *)pchVideoURL, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_119(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishVideo((const char *)pchVideoURL, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_119(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_SetUserPublishedFileAction(void *linux_side, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction) @@ -237,7 +256,14 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_En SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_EnumeratePublishedWorkshopFiles(void *linux_side, EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t * pTags, SteamParamStringArray_t * pUserTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, (SteamParamStringArray_t *)pTags, (SteamParamStringArray_t *)pUserTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_119(pTags, &lin_pTags); + SteamParamStringArray_t lin_pUserTags; + win_to_lin_struct_SteamParamStringArray_t_119(pUserTags, &lin_pUserTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, &lin_pTags, &lin_pUserTags); + lin_to_win_struct_SteamParamStringArray_t_119(&lin_pTags, pTags); + lin_to_win_struct_SteamParamStringArray_t_119(&lin_pUserTags, pUserTags); + return retval; } #ifdef __cplusplus diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008.cpp index badbf028..f4ad61a7 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008.cpp @@ -142,7 +142,11 @@ UGCHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_GetCa SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishWorkshopFile(void *linux_side, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { - return ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags, (EWorkshopFileType)eWorkshopFileType); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_121(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags, (EWorkshopFileType)eWorkshopFileType); + lin_to_win_struct_SteamParamStringArray_t_121(&lin_pTags, pTags); + return retval; } PublishedFileUpdateHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_CreatePublishedFileUpdateRequest(void *linux_side, PublishedFileId_t unPublishedFileId) @@ -177,7 +181,11 @@ bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublis bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFileTags(void *linux_side, PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_121(pTags, &lin_pTags); + bool retval = ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_121(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_CommitPublishedFileUpdate(void *linux_side, PublishedFileUpdateHandle_t updateHandle) @@ -237,12 +245,23 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_Ge SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_EnumerateUserSharedWorkshopFiles(void *linux_side, CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t * pRequiredTags, SteamParamStringArray_t * pExcludedTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, (SteamParamStringArray_t *)pRequiredTags, (SteamParamStringArray_t *)pExcludedTags); + SteamParamStringArray_t lin_pRequiredTags; + win_to_lin_struct_SteamParamStringArray_t_121(pRequiredTags, &lin_pRequiredTags); + SteamParamStringArray_t lin_pExcludedTags; + win_to_lin_struct_SteamParamStringArray_t_121(pExcludedTags, &lin_pExcludedTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, &lin_pRequiredTags, &lin_pExcludedTags); + lin_to_win_struct_SteamParamStringArray_t_121(&lin_pRequiredTags, pRequiredTags); + lin_to_win_struct_SteamParamStringArray_t_121(&lin_pExcludedTags, pExcludedTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishVideo(void *linux_side, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_121(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_121(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_SetUserPublishedFileAction(void *linux_side, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction) @@ -257,7 +276,14 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_En SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_EnumeratePublishedWorkshopFiles(void *linux_side, EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t * pTags, SteamParamStringArray_t * pUserTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, (SteamParamStringArray_t *)pTags, (SteamParamStringArray_t *)pUserTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_121(pTags, &lin_pTags); + SteamParamStringArray_t lin_pUserTags; + win_to_lin_struct_SteamParamStringArray_t_121(pUserTags, &lin_pUserTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, &lin_pTags, &lin_pUserTags); + lin_to_win_struct_SteamParamStringArray_t_121(&lin_pTags, pTags); + lin_to_win_struct_SteamParamStringArray_t_121(&lin_pUserTags, pUserTags); + return retval; } #ifdef __cplusplus diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010.cpp index e99efddf..4a8d2ed4 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010.cpp @@ -142,7 +142,11 @@ UGCHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_GetCa SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishWorkshopFile(void *linux_side, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { - return ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags, (EWorkshopFileType)eWorkshopFileType); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_124(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags, (EWorkshopFileType)eWorkshopFileType); + lin_to_win_struct_SteamParamStringArray_t_124(&lin_pTags, pTags); + return retval; } PublishedFileUpdateHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_CreatePublishedFileUpdateRequest(void *linux_side, PublishedFileId_t unPublishedFileId) @@ -177,7 +181,11 @@ bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublis bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFileTags(void *linux_side, PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_124(pTags, &lin_pTags); + bool retval = ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_124(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_CommitPublishedFileUpdate(void *linux_side, PublishedFileUpdateHandle_t updateHandle) @@ -237,12 +245,23 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_Ge SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_EnumerateUserSharedWorkshopFiles(void *linux_side, CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t * pRequiredTags, SteamParamStringArray_t * pExcludedTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, (SteamParamStringArray_t *)pRequiredTags, (SteamParamStringArray_t *)pExcludedTags); + SteamParamStringArray_t lin_pRequiredTags; + win_to_lin_struct_SteamParamStringArray_t_124(pRequiredTags, &lin_pRequiredTags); + SteamParamStringArray_t lin_pExcludedTags; + win_to_lin_struct_SteamParamStringArray_t_124(pExcludedTags, &lin_pExcludedTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, &lin_pRequiredTags, &lin_pExcludedTags); + lin_to_win_struct_SteamParamStringArray_t_124(&lin_pRequiredTags, pRequiredTags); + lin_to_win_struct_SteamParamStringArray_t_124(&lin_pExcludedTags, pExcludedTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishVideo(void *linux_side, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_124(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_124(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_SetUserPublishedFileAction(void *linux_side, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction) @@ -257,7 +276,14 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_En SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_EnumeratePublishedWorkshopFiles(void *linux_side, EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t * pTags, SteamParamStringArray_t * pUserTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, (SteamParamStringArray_t *)pTags, (SteamParamStringArray_t *)pUserTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_124(pTags, &lin_pTags); + SteamParamStringArray_t lin_pUserTags; + win_to_lin_struct_SteamParamStringArray_t_124(pUserTags, &lin_pUserTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, &lin_pTags, &lin_pUserTags); + lin_to_win_struct_SteamParamStringArray_t_124(&lin_pTags, pTags); + lin_to_win_struct_SteamParamStringArray_t_124(&lin_pUserTags, pUserTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UGCDownloadToLocation(void *linux_side, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority) diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011.cpp index 11f61f34..19aa577c 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011.cpp @@ -142,7 +142,11 @@ UGCHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_GetCa SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishWorkshopFile(void *linux_side, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { - return ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags, (EWorkshopFileType)eWorkshopFileType); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_125(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags, (EWorkshopFileType)eWorkshopFileType); + lin_to_win_struct_SteamParamStringArray_t_125(&lin_pTags, pTags); + return retval; } PublishedFileUpdateHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_CreatePublishedFileUpdateRequest(void *linux_side, PublishedFileId_t unPublishedFileId) @@ -177,7 +181,11 @@ bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublis bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFileTags(void *linux_side, PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_125(pTags, &lin_pTags); + bool retval = ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_125(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_CommitPublishedFileUpdate(void *linux_side, PublishedFileUpdateHandle_t updateHandle) @@ -237,12 +245,23 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_Ge SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_EnumerateUserSharedWorkshopFiles(void *linux_side, CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t * pRequiredTags, SteamParamStringArray_t * pExcludedTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, (SteamParamStringArray_t *)pRequiredTags, (SteamParamStringArray_t *)pExcludedTags); + SteamParamStringArray_t lin_pRequiredTags; + win_to_lin_struct_SteamParamStringArray_t_125(pRequiredTags, &lin_pRequiredTags); + SteamParamStringArray_t lin_pExcludedTags; + win_to_lin_struct_SteamParamStringArray_t_125(pExcludedTags, &lin_pExcludedTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, &lin_pRequiredTags, &lin_pExcludedTags); + lin_to_win_struct_SteamParamStringArray_t_125(&lin_pRequiredTags, pRequiredTags); + lin_to_win_struct_SteamParamStringArray_t_125(&lin_pExcludedTags, pExcludedTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishVideo(void *linux_side, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_125(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_125(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_SetUserPublishedFileAction(void *linux_side, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction) @@ -257,7 +276,14 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_En SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_EnumeratePublishedWorkshopFiles(void *linux_side, EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t * pTags, SteamParamStringArray_t * pUserTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, (SteamParamStringArray_t *)pTags, (SteamParamStringArray_t *)pUserTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_125(pTags, &lin_pTags); + SteamParamStringArray_t lin_pUserTags; + win_to_lin_struct_SteamParamStringArray_t_125(pUserTags, &lin_pUserTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, &lin_pTags, &lin_pUserTags); + lin_to_win_struct_SteamParamStringArray_t_125(&lin_pTags, pTags); + lin_to_win_struct_SteamParamStringArray_t_125(&lin_pUserTags, pUserTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UGCDownloadToLocation(void *linux_side, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority) diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012.cpp index 14d149ac..505d121e 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012.cpp @@ -142,7 +142,11 @@ UGCHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_GetCa SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishWorkshopFile(void *linux_side, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { - return ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags, (EWorkshopFileType)eWorkshopFileType); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_134(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags, (EWorkshopFileType)eWorkshopFileType); + lin_to_win_struct_SteamParamStringArray_t_134(&lin_pTags, pTags); + return retval; } PublishedFileUpdateHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_CreatePublishedFileUpdateRequest(void *linux_side, PublishedFileId_t unPublishedFileId) @@ -177,7 +181,11 @@ bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublis bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFileTags(void *linux_side, PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_134(pTags, &lin_pTags); + bool retval = ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_134(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_CommitPublishedFileUpdate(void *linux_side, PublishedFileUpdateHandle_t updateHandle) @@ -237,12 +245,23 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_Ge SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_EnumerateUserSharedWorkshopFiles(void *linux_side, CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t * pRequiredTags, SteamParamStringArray_t * pExcludedTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, (SteamParamStringArray_t *)pRequiredTags, (SteamParamStringArray_t *)pExcludedTags); + SteamParamStringArray_t lin_pRequiredTags; + win_to_lin_struct_SteamParamStringArray_t_134(pRequiredTags, &lin_pRequiredTags); + SteamParamStringArray_t lin_pExcludedTags; + win_to_lin_struct_SteamParamStringArray_t_134(pExcludedTags, &lin_pExcludedTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, &lin_pRequiredTags, &lin_pExcludedTags); + lin_to_win_struct_SteamParamStringArray_t_134(&lin_pRequiredTags, pRequiredTags); + lin_to_win_struct_SteamParamStringArray_t_134(&lin_pExcludedTags, pExcludedTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishVideo(void *linux_side, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_134(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_134(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_SetUserPublishedFileAction(void *linux_side, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction) @@ -257,7 +276,14 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_En SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_EnumeratePublishedWorkshopFiles(void *linux_side, EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t * pTags, SteamParamStringArray_t * pUserTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, (SteamParamStringArray_t *)pTags, (SteamParamStringArray_t *)pUserTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_134(pTags, &lin_pTags); + SteamParamStringArray_t lin_pUserTags; + win_to_lin_struct_SteamParamStringArray_t_134(pUserTags, &lin_pUserTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, &lin_pTags, &lin_pUserTags); + lin_to_win_struct_SteamParamStringArray_t_134(&lin_pTags, pTags); + lin_to_win_struct_SteamParamStringArray_t_134(&lin_pUserTags, pUserTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UGCDownloadToLocation(void *linux_side, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority) diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013.cpp index b45cffd1..b447be30 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013.cpp @@ -157,7 +157,11 @@ UGCHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_GetCa SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishWorkshopFile(void *linux_side, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { - return ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags, (EWorkshopFileType)eWorkshopFileType); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_137(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags, (EWorkshopFileType)eWorkshopFileType); + lin_to_win_struct_SteamParamStringArray_t_137(&lin_pTags, pTags); + return retval; } PublishedFileUpdateHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_CreatePublishedFileUpdateRequest(void *linux_side, PublishedFileId_t unPublishedFileId) @@ -192,7 +196,11 @@ bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublis bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFileTags(void *linux_side, PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_137(pTags, &lin_pTags); + bool retval = ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_137(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_CommitPublishedFileUpdate(void *linux_side, PublishedFileUpdateHandle_t updateHandle) @@ -252,12 +260,23 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_Ge SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_EnumerateUserSharedWorkshopFiles(void *linux_side, CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t * pRequiredTags, SteamParamStringArray_t * pExcludedTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, (SteamParamStringArray_t *)pRequiredTags, (SteamParamStringArray_t *)pExcludedTags); + SteamParamStringArray_t lin_pRequiredTags; + win_to_lin_struct_SteamParamStringArray_t_137(pRequiredTags, &lin_pRequiredTags); + SteamParamStringArray_t lin_pExcludedTags; + win_to_lin_struct_SteamParamStringArray_t_137(pExcludedTags, &lin_pExcludedTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, &lin_pRequiredTags, &lin_pExcludedTags); + lin_to_win_struct_SteamParamStringArray_t_137(&lin_pRequiredTags, pRequiredTags); + lin_to_win_struct_SteamParamStringArray_t_137(&lin_pExcludedTags, pExcludedTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishVideo(void *linux_side, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_137(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_137(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_SetUserPublishedFileAction(void *linux_side, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction) @@ -272,7 +291,14 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_En SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_EnumeratePublishedWorkshopFiles(void *linux_side, EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t * pTags, SteamParamStringArray_t * pUserTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, (SteamParamStringArray_t *)pTags, (SteamParamStringArray_t *)pUserTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_137(pTags, &lin_pTags); + SteamParamStringArray_t lin_pUserTags; + win_to_lin_struct_SteamParamStringArray_t_137(pUserTags, &lin_pUserTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, &lin_pTags, &lin_pUserTags); + lin_to_win_struct_SteamParamStringArray_t_137(&lin_pTags, pTags); + lin_to_win_struct_SteamParamStringArray_t_137(&lin_pUserTags, pUserTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UGCDownloadToLocation(void *linux_side, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority) diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014.cpp index f1abad61..8744bc9f 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014.cpp @@ -157,7 +157,11 @@ UGCHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_GetCa SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishWorkshopFile(void *linux_side, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { - return ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags, (EWorkshopFileType)eWorkshopFileType); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_142(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishWorkshopFile((const char *)pchFile, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags, (EWorkshopFileType)eWorkshopFileType); + lin_to_win_struct_SteamParamStringArray_t_142(&lin_pTags, pTags); + return retval; } PublishedFileUpdateHandle_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_CreatePublishedFileUpdateRequest(void *linux_side, PublishedFileId_t unPublishedFileId) @@ -192,7 +196,11 @@ bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublis bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFileTags(void *linux_side, PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_142(pTags, &lin_pTags); + bool retval = ((ISteamRemoteStorage*)linux_side)->UpdatePublishedFileTags((PublishedFileUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_142(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_CommitPublishedFileUpdate(void *linux_side, PublishedFileUpdateHandle_t updateHandle) @@ -252,12 +260,23 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_Ge SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_EnumerateUserSharedWorkshopFiles(void *linux_side, CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t * pRequiredTags, SteamParamStringArray_t * pExcludedTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, (SteamParamStringArray_t *)pRequiredTags, (SteamParamStringArray_t *)pExcludedTags); + SteamParamStringArray_t lin_pRequiredTags; + win_to_lin_struct_SteamParamStringArray_t_142(pRequiredTags, &lin_pRequiredTags); + SteamParamStringArray_t lin_pExcludedTags; + win_to_lin_struct_SteamParamStringArray_t_142(pExcludedTags, &lin_pExcludedTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumerateUserSharedWorkshopFiles((CSteamID)steamId, (uint32)unStartIndex, &lin_pRequiredTags, &lin_pExcludedTags); + lin_to_win_struct_SteamParamStringArray_t_142(&lin_pRequiredTags, pRequiredTags); + lin_to_win_struct_SteamParamStringArray_t_142(&lin_pExcludedTags, pExcludedTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishVideo(void *linux_side, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { - return ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, (SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_142(pTags, &lin_pTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->PublishVideo((EWorkshopVideoProvider)eVideoProvider, (const char *)pchVideoAccount, (const char *)pchVideoIdentifier, (const char *)pchPreviewFile, (AppId_t)nConsumerAppId, (const char *)pchTitle, (const char *)pchDescription, (ERemoteStoragePublishedFileVisibility)eVisibility, &lin_pTags); + lin_to_win_struct_SteamParamStringArray_t_142(&lin_pTags, pTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_SetUserPublishedFileAction(void *linux_side, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction) @@ -272,7 +291,14 @@ SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_En SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_EnumeratePublishedWorkshopFiles(void *linux_side, EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t * pTags, SteamParamStringArray_t * pUserTags) { - return ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, (SteamParamStringArray_t *)pTags, (SteamParamStringArray_t *)pUserTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_142(pTags, &lin_pTags); + SteamParamStringArray_t lin_pUserTags; + win_to_lin_struct_SteamParamStringArray_t_142(pUserTags, &lin_pUserTags); + SteamAPICall_t retval = ((ISteamRemoteStorage*)linux_side)->EnumeratePublishedWorkshopFiles((EWorkshopEnumerationType)eEnumerationType, (uint32)unStartIndex, (uint32)unCount, (uint32)unDays, &lin_pTags, &lin_pUserTags); + lin_to_win_struct_SteamParamStringArray_t_142(&lin_pTags, pTags); + lin_to_win_struct_SteamParamStringArray_t_142(&lin_pUserTags, pUserTags); + return retval; } SteamAPICall_t cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UGCDownloadToLocation(void *linux_side, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority) diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION001.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION001.cpp index ecfefa19..f52e97a1 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION001.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION001.cpp @@ -22,7 +22,11 @@ SteamAPICall_t cppISteamUGC_STEAMUGC_INTERFACE_VERSION001_SendQueryUGCRequest(vo bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION001_GetQueryUGCResult(void *linux_side, UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t * pDetails) { - return ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, (SteamUGCDetails_t *)pDetails); + SteamUGCDetails_t lin_pDetails; + win_to_lin_struct_SteamUGCDetails_t_128(pDetails, &lin_pDetails); + bool retval = ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, &lin_pDetails); + lin_to_win_struct_SteamUGCDetails_t_128(&lin_pDetails, pDetails); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION001_ReleaseQueryUGCRequest(void *linux_side, UGCQueryHandle_t handle) diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION002.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION002.cpp index 50c0fb9f..cdcc250d 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION002.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION002.cpp @@ -22,7 +22,11 @@ SteamAPICall_t cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_SendQueryUGCRequest(vo bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_GetQueryUGCResult(void *linux_side, UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t * pDetails) { - return ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, (SteamUGCDetails_t *)pDetails); + SteamUGCDetails_t lin_pDetails; + win_to_lin_struct_SteamUGCDetails_t_130(pDetails, &lin_pDetails); + bool retval = ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, &lin_pDetails); + lin_to_win_struct_SteamUGCDetails_t_130(&lin_pDetails, pDetails); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_ReleaseQueryUGCRequest(void *linux_side, UGCQueryHandle_t handle) @@ -107,7 +111,11 @@ bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemVisibility(void *linux_si bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemTags(void *linux_side, UGCUpdateHandle_t updateHandle, const SteamParamStringArray_t * pTags) { - return ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, (const SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_130(pTags, &lin_pTags); + bool retval = ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_const SteamParamStringArray_t_130(&lin_pTags, pTags); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent(void *linux_side, UGCUpdateHandle_t handle, const char * pszContentFolder) diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION003.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION003.cpp index 1d195a70..24ec8fcd 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION003.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION003.cpp @@ -22,7 +22,11 @@ SteamAPICall_t cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_SendQueryUGCRequest(vo bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_GetQueryUGCResult(void *linux_side, UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t * pDetails) { - return ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, (SteamUGCDetails_t *)pDetails); + SteamUGCDetails_t lin_pDetails; + win_to_lin_struct_SteamUGCDetails_t_132(pDetails, &lin_pDetails); + bool retval = ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, &lin_pDetails); + lin_to_win_struct_SteamUGCDetails_t_132(&lin_pDetails, pDetails); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_ReleaseQueryUGCRequest(void *linux_side, UGCQueryHandle_t handle) @@ -107,7 +111,11 @@ bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemVisibility(void *linux_si bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemTags(void *linux_side, UGCUpdateHandle_t updateHandle, const SteamParamStringArray_t * pTags) { - return ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, (const SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_132(pTags, &lin_pTags); + bool retval = ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_const SteamParamStringArray_t_132(&lin_pTags, pTags); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent(void *linux_side, UGCUpdateHandle_t handle, const char * pszContentFolder) diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION005.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION005.cpp index 6b9a3ca7..e5c86e3c 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION005.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION005.cpp @@ -27,7 +27,11 @@ SteamAPICall_t cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_SendQueryUGCRequest(vo bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_GetQueryUGCResult(void *linux_side, UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t * pDetails) { - return ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, (SteamUGCDetails_t *)pDetails); + SteamUGCDetails_t lin_pDetails; + win_to_lin_struct_SteamUGCDetails_t_133b(pDetails, &lin_pDetails); + bool retval = ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, &lin_pDetails); + lin_to_win_struct_SteamUGCDetails_t_133b(&lin_pDetails, pDetails); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_GetQueryUGCPreviewURL(void *linux_side, UGCQueryHandle_t handle, uint32 index, char * pchURL, uint32 cchURLSize) @@ -162,7 +166,11 @@ bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemVisibility(void *linux_si bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemTags(void *linux_side, UGCUpdateHandle_t updateHandle, const SteamParamStringArray_t * pTags) { - return ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, (const SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_133b(pTags, &lin_pTags); + bool retval = ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_const SteamParamStringArray_t_133b(&lin_pTags, pTags); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent(void *linux_side, UGCUpdateHandle_t handle, const char * pszContentFolder) diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION007.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION007.cpp index f4248be7..81178aad 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION007.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION007.cpp @@ -27,7 +27,11 @@ SteamAPICall_t cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_SendQueryUGCRequest(vo bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_GetQueryUGCResult(void *linux_side, UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t * pDetails) { - return ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, (SteamUGCDetails_t *)pDetails); + SteamUGCDetails_t lin_pDetails; + win_to_lin_struct_SteamUGCDetails_t_136(pDetails, &lin_pDetails); + bool retval = ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, &lin_pDetails); + lin_to_win_struct_SteamUGCDetails_t_136(&lin_pDetails, pDetails); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_GetQueryUGCPreviewURL(void *linux_side, UGCQueryHandle_t handle, uint32 index, char * pchURL, uint32 cchURLSize) @@ -192,7 +196,11 @@ bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemVisibility(void *linux_si bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemTags(void *linux_side, UGCUpdateHandle_t updateHandle, const SteamParamStringArray_t * pTags) { - return ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, (const SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_136(pTags, &lin_pTags); + bool retval = ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_const SteamParamStringArray_t_136(&lin_pTags, pTags); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent(void *linux_side, UGCUpdateHandle_t handle, const char * pszContentFolder) diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION008.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION008.cpp index df0566a0..e4462217 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION008.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION008.cpp @@ -27,7 +27,11 @@ SteamAPICall_t cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_SendQueryUGCRequest(vo bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_GetQueryUGCResult(void *linux_side, UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t * pDetails) { - return ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, (SteamUGCDetails_t *)pDetails); + SteamUGCDetails_t lin_pDetails; + win_to_lin_struct_SteamUGCDetails_t_137(pDetails, &lin_pDetails); + bool retval = ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, &lin_pDetails); + lin_to_win_struct_SteamUGCDetails_t_137(&lin_pDetails, pDetails); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_GetQueryUGCPreviewURL(void *linux_side, UGCQueryHandle_t handle, uint32 index, char * pchURL, uint32 cchURLSize) @@ -192,7 +196,11 @@ bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemVisibility(void *linux_si bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemTags(void *linux_side, UGCUpdateHandle_t updateHandle, const SteamParamStringArray_t * pTags) { - return ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, (const SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_137(pTags, &lin_pTags); + bool retval = ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_const SteamParamStringArray_t_137(&lin_pTags, pTags); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent(void *linux_side, UGCUpdateHandle_t handle, const char * pszContentFolder) diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION009.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION009.cpp index bd4e7776..c6b64a6d 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION009.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION009.cpp @@ -27,7 +27,11 @@ SteamAPICall_t cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_SendQueryUGCRequest(vo bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_GetQueryUGCResult(void *linux_side, UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t * pDetails) { - return ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, (SteamUGCDetails_t *)pDetails); + SteamUGCDetails_t lin_pDetails; + win_to_lin_struct_SteamUGCDetails_t_139(pDetails, &lin_pDetails); + bool retval = ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, &lin_pDetails); + lin_to_win_struct_SteamUGCDetails_t_139(&lin_pDetails, pDetails); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_GetQueryUGCPreviewURL(void *linux_side, UGCQueryHandle_t handle, uint32 index, char * pchURL, uint32 cchURLSize) @@ -197,7 +201,11 @@ bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemVisibility(void *linux_si bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemTags(void *linux_side, UGCUpdateHandle_t updateHandle, const SteamParamStringArray_t * pTags) { - return ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, (const SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_139(pTags, &lin_pTags); + bool retval = ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_const SteamParamStringArray_t_139(&lin_pTags, pTags); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent(void *linux_side, UGCUpdateHandle_t handle, const char * pszContentFolder) diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION010.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION010.cpp index c087ed00..c6d34949 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION010.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION010.cpp @@ -27,7 +27,11 @@ SteamAPICall_t cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_SendQueryUGCRequest(vo bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_GetQueryUGCResult(void *linux_side, UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t * pDetails) { - return ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, (SteamUGCDetails_t *)pDetails); + SteamUGCDetails_t lin_pDetails; + win_to_lin_struct_SteamUGCDetails_t_142(pDetails, &lin_pDetails); + bool retval = ((ISteamUGC*)linux_side)->GetQueryUGCResult((UGCQueryHandle_t)handle, (uint32)index, &lin_pDetails); + lin_to_win_struct_SteamUGCDetails_t_142(&lin_pDetails, pDetails); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_GetQueryUGCPreviewURL(void *linux_side, UGCQueryHandle_t handle, uint32 index, char * pchURL, uint32 cchURLSize) @@ -202,7 +206,11 @@ bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemVisibility(void *linux_si bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemTags(void *linux_side, UGCUpdateHandle_t updateHandle, const SteamParamStringArray_t * pTags) { - return ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, (const SteamParamStringArray_t *)pTags); + SteamParamStringArray_t lin_pTags; + win_to_lin_struct_SteamParamStringArray_t_142(pTags, &lin_pTags); + bool retval = ((ISteamUGC*)linux_side)->SetItemTags((UGCUpdateHandle_t)updateHandle, &lin_pTags); + lin_to_win_struct_const SteamParamStringArray_t_142(&lin_pTags, pTags); + return retval; } bool cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent(void *linux_side, UGCUpdateHandle_t handle, const char * pszContentFolder) diff --git a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION005.cpp b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION005.cpp index c3dc0754..19910a8e 100644 --- a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION005.cpp +++ b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION005.cpp @@ -132,7 +132,11 @@ SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION005_DownloadLe bool cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION005_GetDownloadedLeaderboardEntry(void *linux_side, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, LeaderboardEntry_t * pLeaderboardEntry, int32 * pDetails, int cDetailsMax) { - return ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, (LeaderboardEntry_t *)pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + LeaderboardEntry_t lin_pLeaderboardEntry; + win_to_lin_struct_LeaderboardEntry_t_104(pLeaderboardEntry, &lin_pLeaderboardEntry); + bool retval = ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, &lin_pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + lin_to_win_struct_LeaderboardEntry_t_104(&lin_pLeaderboardEntry, pLeaderboardEntry); + return retval; } SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION005_UploadLeaderboardScore(void *linux_side, SteamLeaderboard_t hSteamLeaderboard, int32 nScore, int32 * pScoreDetails, int cScoreDetailsCount) diff --git a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006.cpp b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006.cpp index a32c0db2..15a32a66 100644 --- a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006.cpp +++ b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006.cpp @@ -132,7 +132,11 @@ SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_DownloadLe bool cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetDownloadedLeaderboardEntry(void *linux_side, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, LeaderboardEntry_t * pLeaderboardEntry, int32 * pDetails, int cDetailsMax) { - return ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, (LeaderboardEntry_t *)pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + LeaderboardEntry_t lin_pLeaderboardEntry; + win_to_lin_struct_LeaderboardEntry_t_107(pLeaderboardEntry, &lin_pLeaderboardEntry); + bool retval = ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, &lin_pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + lin_to_win_struct_LeaderboardEntry_t_107(&lin_pLeaderboardEntry, pLeaderboardEntry); + return retval; } SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_UploadLeaderboardScore(void *linux_side, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 * pScoreDetails, int cScoreDetailsCount) diff --git a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION007.cpp b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION007.cpp index 5a7b43e0..eb27c50b 100644 --- a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION007.cpp +++ b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION007.cpp @@ -142,7 +142,11 @@ SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION007_DownloadLe bool cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION007_GetDownloadedLeaderboardEntry(void *linux_side, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, LeaderboardEntry_t * pLeaderboardEntry, int32 * pDetails, int cDetailsMax) { - return ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, (LeaderboardEntry_t *)pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + LeaderboardEntry_t lin_pLeaderboardEntry; + win_to_lin_struct_LeaderboardEntry_t_111(pLeaderboardEntry, &lin_pLeaderboardEntry); + bool retval = ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, &lin_pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + lin_to_win_struct_LeaderboardEntry_t_111(&lin_pLeaderboardEntry, pLeaderboardEntry); + return retval; } SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION007_UploadLeaderboardScore(void *linux_side, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 * pScoreDetails, int cScoreDetailsCount) diff --git a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION009.cpp b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION009.cpp index d6a0720c..582db876 100644 --- a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION009.cpp +++ b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION009.cpp @@ -147,7 +147,11 @@ SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION009_DownloadLe bool cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION009_GetDownloadedLeaderboardEntry(void *linux_side, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, LeaderboardEntry_t * pLeaderboardEntry, int32 * pDetails, int cDetailsMax) { - return ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, (LeaderboardEntry_t *)pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + LeaderboardEntry_t lin_pLeaderboardEntry; + win_to_lin_struct_LeaderboardEntry_t_113(pLeaderboardEntry, &lin_pLeaderboardEntry); + bool retval = ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, &lin_pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + lin_to_win_struct_LeaderboardEntry_t_113(&lin_pLeaderboardEntry, pLeaderboardEntry); + return retval; } SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION009_UploadLeaderboardScore(void *linux_side, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 * pScoreDetails, int cScoreDetailsCount) diff --git a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION010.cpp b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION010.cpp index 93ac7897..9f586877 100644 --- a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION010.cpp +++ b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION010.cpp @@ -147,7 +147,11 @@ SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION010_DownloadLe bool cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION010_GetDownloadedLeaderboardEntry(void *linux_side, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, LeaderboardEntry_t * pLeaderboardEntry, int32 * pDetails, int cDetailsMax) { - return ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, (LeaderboardEntry_t *)pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + LeaderboardEntry_t lin_pLeaderboardEntry; + win_to_lin_struct_LeaderboardEntry_t_119(pLeaderboardEntry, &lin_pLeaderboardEntry); + bool retval = ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, &lin_pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + lin_to_win_struct_LeaderboardEntry_t_119(&lin_pLeaderboardEntry, pLeaderboardEntry); + return retval; } SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION010_UploadLeaderboardScore(void *linux_side, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 * pScoreDetails, int cScoreDetailsCount) diff --git a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION011.cpp b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION011.cpp index 9a01c135..04d2c4f8 100644 --- a/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION011.cpp +++ b/lsteamclient/cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION011.cpp @@ -157,7 +157,11 @@ SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION011_DownloadLe bool cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION011_GetDownloadedLeaderboardEntry(void *linux_side, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, LeaderboardEntry_t * pLeaderboardEntry, int32 * pDetails, int cDetailsMax) { - return ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, (LeaderboardEntry_t *)pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + LeaderboardEntry_t lin_pLeaderboardEntry; + win_to_lin_struct_LeaderboardEntry_t_142(pLeaderboardEntry, &lin_pLeaderboardEntry); + bool retval = ((ISteamUserStats*)linux_side)->GetDownloadedLeaderboardEntry((SteamLeaderboardEntries_t)hSteamLeaderboardEntries, (int)index, &lin_pLeaderboardEntry, (int32 *)pDetails, (int)cDetailsMax); + lin_to_win_struct_LeaderboardEntry_t_142(&lin_pLeaderboardEntry, pLeaderboardEntry); + return retval; } SteamAPICall_t cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION011_UploadLeaderboardScore(void *linux_side, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 * pScoreDetails, int cScoreDetailsCount) diff --git a/lsteamclient/cppISteamUser_SteamUser009.cpp b/lsteamclient/cppISteamUser_SteamUser009.cpp index d85e9444..7e8f7a5c 100644 --- a/lsteamclient/cppISteamUser_SteamUser009.cpp +++ b/lsteamclient/cppISteamUser_SteamUser009.cpp @@ -22,7 +22,11 @@ CSteamID cppISteamUser_SteamUser009_GetSteamID(void *linux_side) int cppISteamUser_SteamUser009_InitiateGameConnection(void *linux_side, void * pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, CGameID gameID, uint32 unIPServer, uint16 usPortServer, bool bSecure) { - return ((ISteamUser*)linux_side)->InitiateGameConnection((void *)pAuthBlob, (int)cbMaxAuthBlob, (CSteamID)steamIDGameServer, (CGameID)gameID, (uint32)unIPServer, (uint16)usPortServer, (bool)bSecure); + CGameID lin_gameID; + win_to_lin_struct_CGameID_100(&gameID, &lin_gameID); + int retval = ((ISteamUser*)linux_side)->InitiateGameConnection((void *)pAuthBlob, (int)cbMaxAuthBlob, (CSteamID)steamIDGameServer, lin_gameID, (uint32)unIPServer, (uint16)usPortServer, (bool)bSecure); + lin_to_win_struct_CGameID_100(&lin_gameID, &gameID); + return retval; } void cppISteamUser_SteamUser009_TerminateGameConnection(void *linux_side, uint32 unIPServer, uint16 usPortServer) @@ -32,7 +36,10 @@ void cppISteamUser_SteamUser009_TerminateGameConnection(void *linux_side, uint32 void cppISteamUser_SteamUser009_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo) { - ((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + CGameID lin_gameID; + win_to_lin_struct_CGameID_100(&gameID, &lin_gameID); + ((ISteamUser*)linux_side)->TrackAppUsageEvent(lin_gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + lin_to_win_struct_CGameID_100(&lin_gameID, &gameID); } void cppISteamUser_SteamUser009_RefreshSteam2Login(void *linux_side) diff --git a/lsteamclient/cppISteamUser_SteamUser010.cpp b/lsteamclient/cppISteamUser_SteamUser010.cpp index 6bda9191..94746920 100644 --- a/lsteamclient/cppISteamUser_SteamUser010.cpp +++ b/lsteamclient/cppISteamUser_SteamUser010.cpp @@ -32,7 +32,10 @@ void cppISteamUser_SteamUser010_TerminateGameConnection(void *linux_side, uint32 void cppISteamUser_SteamUser010_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo) { - ((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + CGameID lin_gameID; + win_to_lin_struct_CGameID_101(&gameID, &lin_gameID); + ((ISteamUser*)linux_side)->TrackAppUsageEvent(lin_gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + lin_to_win_struct_CGameID_101(&lin_gameID, &gameID); } #ifdef __cplusplus diff --git a/lsteamclient/cppISteamUser_SteamUser011.cpp b/lsteamclient/cppISteamUser_SteamUser011.cpp index 9e2147e7..7294d1c9 100644 --- a/lsteamclient/cppISteamUser_SteamUser011.cpp +++ b/lsteamclient/cppISteamUser_SteamUser011.cpp @@ -32,7 +32,10 @@ void cppISteamUser_SteamUser011_TerminateGameConnection(void *linux_side, uint32 void cppISteamUser_SteamUser011_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo) { - ((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + CGameID lin_gameID; + win_to_lin_struct_CGameID_103(&gameID, &lin_gameID); + ((ISteamUser*)linux_side)->TrackAppUsageEvent(lin_gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + lin_to_win_struct_CGameID_103(&lin_gameID, &gameID); } bool cppISteamUser_SteamUser011_GetUserDataFolder(void *linux_side, char * pchBuffer, int cubBuffer) diff --git a/lsteamclient/cppISteamUser_SteamUser012.cpp b/lsteamclient/cppISteamUser_SteamUser012.cpp index b09dbd8a..961afb7c 100644 --- a/lsteamclient/cppISteamUser_SteamUser012.cpp +++ b/lsteamclient/cppISteamUser_SteamUser012.cpp @@ -32,7 +32,10 @@ void cppISteamUser_SteamUser012_TerminateGameConnection(void *linux_side, uint32 void cppISteamUser_SteamUser012_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo) { - ((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + CGameID lin_gameID; + win_to_lin_struct_CGameID_105(&gameID, &lin_gameID); + ((ISteamUser*)linux_side)->TrackAppUsageEvent(lin_gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + lin_to_win_struct_CGameID_105(&lin_gameID, &gameID); } bool cppISteamUser_SteamUser012_GetUserDataFolder(void *linux_side, char * pchBuffer, int cubBuffer) diff --git a/lsteamclient/cppISteamUser_SteamUser013.cpp b/lsteamclient/cppISteamUser_SteamUser013.cpp index 42e20932..f0472312 100644 --- a/lsteamclient/cppISteamUser_SteamUser013.cpp +++ b/lsteamclient/cppISteamUser_SteamUser013.cpp @@ -32,7 +32,10 @@ void cppISteamUser_SteamUser013_TerminateGameConnection(void *linux_side, uint32 void cppISteamUser_SteamUser013_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo) { - ((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + CGameID lin_gameID; + win_to_lin_struct_CGameID_110(&gameID, &lin_gameID); + ((ISteamUser*)linux_side)->TrackAppUsageEvent(lin_gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + lin_to_win_struct_CGameID_110(&lin_gameID, &gameID); } bool cppISteamUser_SteamUser013_GetUserDataFolder(void *linux_side, char * pchBuffer, int cubBuffer) diff --git a/lsteamclient/cppISteamUser_SteamUser014.cpp b/lsteamclient/cppISteamUser_SteamUser014.cpp index 1747b1f0..4ec5c8d7 100644 --- a/lsteamclient/cppISteamUser_SteamUser014.cpp +++ b/lsteamclient/cppISteamUser_SteamUser014.cpp @@ -32,7 +32,10 @@ void cppISteamUser_SteamUser014_TerminateGameConnection(void *linux_side, uint32 void cppISteamUser_SteamUser014_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo) { - ((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + CGameID lin_gameID; + win_to_lin_struct_CGameID_112(&gameID, &lin_gameID); + ((ISteamUser*)linux_side)->TrackAppUsageEvent(lin_gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + lin_to_win_struct_CGameID_112(&lin_gameID, &gameID); } bool cppISteamUser_SteamUser014_GetUserDataFolder(void *linux_side, char * pchBuffer, int cubBuffer) diff --git a/lsteamclient/cppISteamUser_SteamUser016.cpp b/lsteamclient/cppISteamUser_SteamUser016.cpp index 45c2f570..19e9d294 100644 --- a/lsteamclient/cppISteamUser_SteamUser016.cpp +++ b/lsteamclient/cppISteamUser_SteamUser016.cpp @@ -32,7 +32,10 @@ void cppISteamUser_SteamUser016_TerminateGameConnection(void *linux_side, uint32 void cppISteamUser_SteamUser016_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo) { - ((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + CGameID lin_gameID; + win_to_lin_struct_CGameID_123a(&gameID, &lin_gameID); + ((ISteamUser*)linux_side)->TrackAppUsageEvent(lin_gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + lin_to_win_struct_CGameID_123a(&lin_gameID, &gameID); } bool cppISteamUser_SteamUser016_GetUserDataFolder(void *linux_side, char * pchBuffer, int cubBuffer) diff --git a/lsteamclient/cppISteamUser_SteamUser017.cpp b/lsteamclient/cppISteamUser_SteamUser017.cpp index e998154a..0a4100e6 100644 --- a/lsteamclient/cppISteamUser_SteamUser017.cpp +++ b/lsteamclient/cppISteamUser_SteamUser017.cpp @@ -32,7 +32,10 @@ void cppISteamUser_SteamUser017_TerminateGameConnection(void *linux_side, uint32 void cppISteamUser_SteamUser017_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo) { - ((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + CGameID lin_gameID; + win_to_lin_struct_CGameID_131(&gameID, &lin_gameID); + ((ISteamUser*)linux_side)->TrackAppUsageEvent(lin_gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + lin_to_win_struct_CGameID_131(&lin_gameID, &gameID); } bool cppISteamUser_SteamUser017_GetUserDataFolder(void *linux_side, char * pchBuffer, int cubBuffer) diff --git a/lsteamclient/cppISteamUser_SteamUser018.cpp b/lsteamclient/cppISteamUser_SteamUser018.cpp index 361919a9..ce3cd2be 100644 --- a/lsteamclient/cppISteamUser_SteamUser018.cpp +++ b/lsteamclient/cppISteamUser_SteamUser018.cpp @@ -32,7 +32,10 @@ void cppISteamUser_SteamUser018_TerminateGameConnection(void *linux_side, uint32 void cppISteamUser_SteamUser018_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo) { - ((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + CGameID lin_gameID; + win_to_lin_struct_CGameID_136(&gameID, &lin_gameID); + ((ISteamUser*)linux_side)->TrackAppUsageEvent(lin_gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + lin_to_win_struct_CGameID_136(&lin_gameID, &gameID); } bool cppISteamUser_SteamUser018_GetUserDataFolder(void *linux_side, char * pchBuffer, int cubBuffer) diff --git a/lsteamclient/cppISteamUser_SteamUser019.cpp b/lsteamclient/cppISteamUser_SteamUser019.cpp index 233a9505..3efcf5c4 100644 --- a/lsteamclient/cppISteamUser_SteamUser019.cpp +++ b/lsteamclient/cppISteamUser_SteamUser019.cpp @@ -32,7 +32,10 @@ void cppISteamUser_SteamUser019_TerminateGameConnection(void *linux_side, uint32 void cppISteamUser_SteamUser019_TrackAppUsageEvent(void *linux_side, CGameID gameID, int eAppUsageEvent, const char * pchExtraInfo) { - ((ISteamUser*)linux_side)->TrackAppUsageEvent((CGameID)gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + CGameID lin_gameID; + win_to_lin_struct_CGameID_142(&gameID, &lin_gameID); + ((ISteamUser*)linux_side)->TrackAppUsageEvent(lin_gameID, (int)eAppUsageEvent, (const char *)pchExtraInfo); + lin_to_win_struct_CGameID_142(&lin_gameID, &gameID); } bool cppISteamUser_SteamUser019_GetUserDataFolder(void *linux_side, char * pchBuffer, int cubBuffer) diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 6f25f784..eea931ef 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -148,6 +148,9 @@ print_sizes = [] class_versions = {} +def strip_const(typename): + return typename.replace("const ", "", 1) + def handle_destructor(cfile, classname, winclassname, method): cfile.write("DEFINE_THISCALL_WRAPPER(%s_destructor, 4)\n" % winclassname) cfile.write("void __thiscall %s_destructor(%s *_this)\n{/* never called */}\n\n" % (winclassname, winclassname)) @@ -192,6 +195,7 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e if returns_record: cfile.write(", %s *_r" % method.result_type.spelling) unnamed = 'a' + need_convert = [] for param in list(method.get_children()): if param.kind == clang.cindex.CursorKind.PARM_DECL: if param.type.kind == clang.cindex.TypeKind.POINTER and \ @@ -200,6 +204,15 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e typename = "void *" else: typename = param.type.spelling.split("::")[-1]; + + #assume pointers are out-params and structs are in-params + real_type = param.type; + while real_type.kind == clang.cindex.TypeKind.POINTER: + real_type = real_type.get_pointee() + if real_type.kind == clang.cindex.TypeKind.RECORD and \ + real_type.spelling != "CSteamID": + need_convert.append(param) + if param.spelling == "": cfile.write(", %s _%s" % (typename, unnamed)) cpp.write(", %s _%s" % (typename, unnamed)) @@ -220,20 +233,39 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e if char_param_is_unix_path: cfile.write(" uint32 path_result;\n") + for param in need_convert: + if param.spelling == "ppchFilters": + #manually handle double pointer ppchFilters + #if we need to automate this, we could figure out how the annotation syntax converts into cindex + cpp.write(" %s *lin_%s = malloc(sizeof(%s) * nFilters);\n" % (param.type.spelling, param.spelling, param.type.spelling)) + cpp.write(" for(int i = 0; i < nFilters; ++i)\n") + cpp.write(" win_to_lin_struct_%s_%s(%s[i], &lin_%s[i]);\n" % (param.type.spelling, sdkver, param.spelling, param.spelling)) + elif param.type.kind == clang.cindex.TypeKind.POINTER: + #handle single pointers, but not double pointers + assert(param.type.get_pointee().kind == clang.cindex.TypeKind.RECORD) + cpp.write(" %s lin_%s;\n" % (strip_const(param.type.get_pointee().spelling), param.spelling)) + cpp.write(" win_to_lin_struct_%s_%s(%s, &lin_%s);\n" % (strip_const(param.type.get_pointee().spelling), sdkver, param.spelling, param.spelling)) + else: + #raw structs + cpp.write(" %s lin_%s;\n" % (param.type.spelling, param.spelling)) + cpp.write(" win_to_lin_struct_%s_%s(&%s, &lin_%s);\n" % (param.type.spelling, sdkver, param.spelling, param.spelling)) cfile.write(" TRACE(\"%p\\n\", _this);\n") if method.result_type.kind == clang.cindex.TypeKind.VOID: cfile.write(" ") - cpp.write(" ") elif char_param_is_unix_path: cfile.write(" path_result = ") - cpp.write(" return ") elif returns_record: cfile.write(" *_r = ") - cpp.write(" return ") else: cfile.write(" return ") + + if method.result_type.kind == clang.cindex.TypeKind.VOID: + cpp.write(" ") + elif len(need_convert) > 0: + cpp.write(" %s retval = " % (method.result_type.spelling)) + else: cpp.write(" return ") should_gen_wrapper = method.result_type.spelling.startswith("ISteam") or \ @@ -265,6 +297,13 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e elif "ISteamMatchmakingServerListResponse" in param.type.spelling: cfile.write(", create_LinuxMatchmakingServerListResponse(%s)" % param.spelling) cpp.write("(%s)%s" % (param.type.spelling, param.spelling)) + elif param in need_convert: + cfile.write(", %s" % param.spelling) + if param.type.kind != clang.cindex.TypeKind.POINTER or \ + param.spelling == "ppchFilter": + cpp.write("lin_%s" % (param.spelling)) + else: + cpp.write("&lin_%s" % (param.spelling)) else: cfile.write(", %s" % param.spelling) cpp.write("(%s)%s" % (param.type.spelling, param.spelling)) @@ -277,6 +316,14 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e if char_param_is_unix_path and not path_param_name is None and not path_size_param_name is None: cfile.write(" return steamclient_unix_path_to_dos_path(path_result, %s, %s);\n" % (path_param_name, path_size_param_name)) cfile.write("}\n\n") + for param in need_convert: + if param.type.kind == clang.cindex.TypeKind.POINTER: + cpp.write(" lin_to_win_struct_%s_%s(&lin_%s, %s);\n" % (param.type.get_pointee().spelling, sdkver, param.spelling, param.spelling)) + else: + cpp.write(" lin_to_win_struct_%s_%s(&lin_%s, &%s);\n" % (param.type.spelling, sdkver, param.spelling, param.spelling)) + if method.result_type.kind != clang.cindex.TypeKind.VOID and \ + len(need_convert) > 0: + cpp.write(" return retval;\n") cpp.write("}\n\n") def get_iface_version(classname):