mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-05-11 14:19:35 +03:00
lsteamclient: Manually wrap ISteamRemoteStorage_UpdatePublishedFile.
This commit is contained in:
parent
c31e612e7f
commit
95d76758be
@ -254,6 +254,7 @@ SOURCES = \
|
|||||||
cppISteamVideo_STEAMVIDEO_INTERFACE_V007.cpp \
|
cppISteamVideo_STEAMVIDEO_INTERFACE_V007.cpp \
|
||||||
unix_steam_input_manual.cpp \
|
unix_steam_input_manual.cpp \
|
||||||
unix_steam_networking_manual.cpp \
|
unix_steam_networking_manual.cpp \
|
||||||
|
unix_steam_remote_storage_manual.cpp \
|
||||||
unix_steam_utils_manual.cpp \
|
unix_steam_utils_manual.cpp \
|
||||||
unix_steam_matchmaking_manual.cpp \
|
unix_steam_matchmaking_manual.cpp \
|
||||||
unixlib.cpp \
|
unixlib.cpp \
|
||||||
|
@ -203,14 +203,6 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWork
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_UpdatePublishedFile( void *args )
|
|
||||||
{
|
|
||||||
struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_UpdatePublishedFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_UpdatePublishedFile_params *)args;
|
|
||||||
struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005 *)params->u_iface;
|
|
||||||
params->_ret = iface->UpdatePublishedFile( params->updatePublishedFileRequest );
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_GetPublishedFileDetails( void *args )
|
NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_GetPublishedFileDetails( void *args )
|
||||||
{
|
{
|
||||||
struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_GetPublishedFileDetails_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_GetPublishedFileDetails_params *)args;
|
struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_GetPublishedFileDetails_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_GetPublishedFileDetails_params *)args;
|
||||||
|
@ -206,7 +206,8 @@ SIZED_STRUCTS = {
|
|||||||
|
|
||||||
# we have converters for these written by hand because they're too complicated to generate
|
# we have converters for these written by hand because they're too complicated to generate
|
||||||
MANUAL_STRUCTS = [
|
MANUAL_STRUCTS = [
|
||||||
"SteamNetworkingMessage_t"
|
"SteamNetworkingMessage_t",
|
||||||
|
"RemoteStorageUpdatePublishedFileRequest_t",
|
||||||
]
|
]
|
||||||
|
|
||||||
UNIX_FUNCS = [
|
UNIX_FUNCS = [
|
||||||
@ -277,6 +278,8 @@ MANUAL_METHODS = {
|
|||||||
"ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess": lambda ver, abi: abi == 'u' and ver >= 20,
|
"ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess": lambda ver, abi: abi == 'u' and ver >= 20,
|
||||||
|
|
||||||
"ISteamUtils_GetAPICallResult": lambda ver, abi: abi == 'u',
|
"ISteamUtils_GetAPICallResult": lambda ver, abi: abi == 'u',
|
||||||
|
|
||||||
|
"ISteamRemoteStorage_UpdatePublishedFile": lambda ver, abi: abi == 'u' and ver >= 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
19
lsteamclient/unix_steam_remote_storage_manual.cpp
Normal file
19
lsteamclient/unix_steam_remote_storage_manual.cpp
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#include "unix_private.h"
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
#pragma makedep unix
|
||||||
|
#endif
|
||||||
|
|
||||||
|
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
|
||||||
|
|
||||||
|
template< typename Iface, typename Params >
|
||||||
|
static NTSTATUS ISteamRemoteStorage_UpdatePublishedFile( Iface *iface, Params *params )
|
||||||
|
{
|
||||||
|
u_RemoteStorageUpdatePublishedFileRequest_t u_updatePublishedFileRequest = params->updatePublishedFileRequest;
|
||||||
|
u_updatePublishedFileRequest.m_pTags = new u_SteamParamStringArray_t( *params->updatePublishedFileRequest.m_pTags );
|
||||||
|
params->_ret = iface->UpdatePublishedFile( u_updatePublishedFileRequest );
|
||||||
|
delete u_updatePublishedFileRequest.m_pTags;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LSTEAMCLIENT_UNIX_IMPL( ISteamRemoteStorage, STEAMREMOTESTORAGE_INTERFACE_VERSION005, UpdatePublishedFile );
|
Loading…
x
Reference in New Issue
Block a user