X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_steam_remote_storage.h;h=d724c20382cf7efd5baf6fd619069d839b0d864e;hb=HEAD;hp=0076b92407da5a3c41ca9d432558cb02be4c5276;hpb=81c1746e8550682b581548e262660271b5d4d6dd;p=vg.git diff --git a/vg_steam_remote_storage.h b/vg_steam_remote_storage.h index 0076b92..c7980e2 100644 --- a/vg_steam_remote_storage.h +++ b/vg_steam_remote_storage.h @@ -1,9 +1,7 @@ -#ifndef VG_STEAM_REMOTE_STORAGE_H -#define VG_STEAM_REMOTE_STORAGE_H +#pragma once +#include "vg_steam.h" -#include "vg/vg_steam.h" - -const u32 k_unMaxCloudFileChunkSize = 100 * 1024 * 1024; +static const u32 k_unMaxCloudFileChunkSize = 100 * 1024 * 1024; #if defined( VALVE_CALLBACK_PACK_SMALL ) #pragma pack( push, 4 ) @@ -24,14 +22,14 @@ typedef void ISteamRemoteStorage; typedef u64 UGCHandle_t; typedef u64 PublishedFileUpdateHandle_t; typedef u64 PublishedFileId_t; -const PublishedFileId_t k_PublishedFileIdInvalid = 0; -const UGCHandle_t k_UGCHandleInvalid = 0xffffffffffffffffull; -const PublishedFileUpdateHandle_t +static const PublishedFileId_t k_PublishedFileIdInvalid = 0; +static const UGCHandle_t k_UGCHandleInvalid = 0xffffffffffffffffull; +static const PublishedFileUpdateHandle_t k_PublishedFileUpdateHandleInvalid = 0xffffffffffffffffull; /* Handle for writing to Steam Cloud */ typedef u64 UGCFileWriteStreamHandle_t; -const UGCFileWriteStreamHandle_t +static const UGCFileWriteStreamHandle_t k_UGCFileStreamHandleInvalid = 0xffffffffffffffffull; enum{ k_cchPublishedDocumentTitleMax = 128 + 1 }; @@ -423,7 +421,8 @@ enum { k_iRemoteStorageFileReadAsyncComplete_t = #pragma pack( pop ) ISteamRemoteStorage *SteamAPI_SteamRemoteStorage_v016(); -ISteamRemoteStorage *SteamAPI_SteamRemoteStorage(){ +static inline ISteamRemoteStorage *SteamAPI_SteamRemoteStorage() +{ return SteamAPI_SteamRemoteStorage_v016(); } @@ -581,5 +580,3 @@ steamapi_bool SteamAPI_ISteamRemoteStorage_BeginFileWriteBatch( ISteamRemoteStorage *self ); steamapi_bool SteamAPI_ISteamRemoteStorage_EndFileWriteBatch( ISteamRemoteStorage *self ); - -#endif /* VG_STEAM_REMOTE_STORAGE_H */