mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-01 17:45:46 +03:00
a1445b757d
CW-Bug-Id: #22729
73 lines
3.9 KiB
C++
73 lines
3.9 KiB
C++
#include "steam_defs.h"
|
|
#pragma push_macro("__cdecl")
|
|
#undef __cdecl
|
|
#define __cdecl
|
|
#include "steamworks_sdk_137/steam_api.h"
|
|
#pragma pop_macro("__cdecl")
|
|
#include "steamclient_private.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#define SDKVER_137
|
|
#include "struct_converters.h"
|
|
#include "cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002.h"
|
|
|
|
struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002
|
|
{
|
|
#ifdef __cplusplus
|
|
virtual uint32_t WriteScreenshot( void *, uint32_t, int32_t, int32_t ) = 0;
|
|
virtual uint32_t AddScreenshotToLibrary( const char *, const char *, int32_t, int32_t ) = 0;
|
|
virtual void TriggerScreenshot( ) = 0;
|
|
virtual void HookScreenshots( bool ) = 0;
|
|
virtual bool SetLocation( uint32_t, const char * ) = 0;
|
|
virtual bool TagUser( uint32_t, CSteamID ) = 0;
|
|
virtual bool TagPublishedFile( uint32_t, uint64_t ) = 0;
|
|
#endif /* __cplusplus */
|
|
};
|
|
|
|
void cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_WriteScreenshot( struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_WriteScreenshot_params *params )
|
|
{
|
|
struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *iface = (struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *)params->linux_side;
|
|
params->_ret = iface->WriteScreenshot( params->pubRGB, params->cubRGB, params->nWidth, params->nHeight );
|
|
}
|
|
|
|
void cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotToLibrary( struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotToLibrary_params *params )
|
|
{
|
|
struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *iface = (struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *)params->linux_side;
|
|
params->_ret = iface->AddScreenshotToLibrary( params->pchFilename, params->pchThumbnailFilename, params->nWidth, params->nHeight );
|
|
}
|
|
|
|
void cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_TriggerScreenshot( struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_TriggerScreenshot_params *params )
|
|
{
|
|
struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *iface = (struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *)params->linux_side;
|
|
iface->TriggerScreenshot( );
|
|
}
|
|
|
|
void cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_HookScreenshots( struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_HookScreenshots_params *params )
|
|
{
|
|
struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *iface = (struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *)params->linux_side;
|
|
iface->HookScreenshots( params->bHook );
|
|
}
|
|
|
|
void cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_SetLocation( struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_SetLocation_params *params )
|
|
{
|
|
struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *iface = (struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *)params->linux_side;
|
|
params->_ret = iface->SetLocation( params->hScreenshot, params->pchLocation );
|
|
}
|
|
|
|
void cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_TagUser( struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_TagUser_params *params )
|
|
{
|
|
struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *iface = (struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *)params->linux_side;
|
|
params->_ret = iface->TagUser( params->hScreenshot, params->steamID );
|
|
}
|
|
|
|
void cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_TagPublishedFile( struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_TagPublishedFile_params *params )
|
|
{
|
|
struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *iface = (struct cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *)params->linux_side;
|
|
params->_ret = iface->TagPublishedFile( params->hScreenshot, params->unPublishedFileID );
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|