2018-01-18 10:24:05 -06:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 09:00:45 -05:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2023-05-02 10:43:23 +02:00
|
|
|
#define __cdecl
|
2018-01-18 10:24:05 -06:00
|
|
|
#include "steamworks_sdk_111/steam_api.h"
|
2019-08-16 09:00:45 -05:00
|
|
|
#pragma pop_macro("__cdecl")
|
2018-10-30 14:06:46 -05:00
|
|
|
#include "steamclient_private.h"
|
2018-01-18 10:24:05 -06:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2019-02-26 09:05:29 -06:00
|
|
|
#define SDKVER_111
|
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION002.h"
|
2023-09-23 16:11:42 +02:00
|
|
|
bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION002_FileWrite(void *linux_side, const char *pchFile, const void *pvData, int32 cubData)
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamRemoteStorage*)linux_side)->FileWrite((const char *)pchFile, (const void *)pvData, (int32)cubData);
|
|
|
|
return (_ret);
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
int32 cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION002_GetFileSize(void *linux_side, const char *pchFile)
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
int32 _ret;
|
|
|
|
_ret = ((ISteamRemoteStorage*)linux_side)->GetFileSize((const char *)pchFile);
|
|
|
|
return (_ret);
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
int32 cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION002_FileRead(void *linux_side, const char *pchFile, void *pvData, int32 cubDataToRead)
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
int32 _ret;
|
|
|
|
_ret = ((ISteamRemoteStorage*)linux_side)->FileRead((const char *)pchFile, (void *)pvData, (int32)cubDataToRead);
|
|
|
|
return (_ret);
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION002_FileExists(void *linux_side, const char *pchFile)
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamRemoteStorage*)linux_side)->FileExists((const char *)pchFile);
|
|
|
|
return (_ret);
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
int32 cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION002_GetFileCount(void *linux_side)
|
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
int32 _ret;
|
|
|
|
_ret = ((ISteamRemoteStorage*)linux_side)->GetFileCount();
|
|
|
|
return (_ret);
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
const char * cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION002_GetFileNameAndSize(void *linux_side, int iFile, int32 *pnFileSizeInBytes)
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 22:07:08 +02:00
|
|
|
const char *_ret;
|
2023-09-23 21:44:20 +02:00
|
|
|
_ret = ((ISteamRemoteStorage*)linux_side)->GetFileNameAndSize((int)iFile, (int32 *)pnFileSizeInBytes);
|
|
|
|
return (_ret);
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
bool cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION002_GetQuota(void *linux_side, int32 *pnTotalBytes, int32 *puAvailableBytes)
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamRemoteStorage*)linux_side)->GetQuota((int32 *)pnTotalBytes, (int32 *)puAvailableBytes);
|
|
|
|
return (_ret);
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|