X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_steam_ugc.h;fp=vg_steam_ugc.h;h=cb0bfc668c84fcccd0c221c96b8d782d5c810aa3;hb=81c1746e8550682b581548e262660271b5d4d6dd;hp=520419226fe5e624dd0be1811994b954b1a2472d;hpb=ffd724233b7a3cb89d0d5d253ba4c475d87c76e2;p=vg.git diff --git a/vg_steam_ugc.h b/vg_steam_ugc.h index 5204192..cb0bfc6 100644 --- a/vg_steam_ugc.h +++ b/vg_steam_ugc.h @@ -221,14 +221,14 @@ struct SteamUGCDetails_t{ * applicable) */ u32 m_rtimeAddedToUserList; ERemoteStoragePublishedFileVisibility m_eVisibility; /* visibility */ - int m_bBanned; /* whether the file was banned */ + steamapi_bool m_bBanned; /* whether the file was banned */ /* developer has specifically flagged this item as accepted in the Workshop*/ - int m_bAcceptedForUse; + steamapi_bool m_bAcceptedForUse; /* whether the list of tags was too long to be returned in the provided * buffer */ - int m_bTagsTruncated; + steamapi_bool m_bTagsTruncated; /* comma separated list of all tags associated with this file */ char m_rgchTags[k_cchTagListMax]; @@ -265,7 +265,7 @@ struct SteamUGCQueryCompleted_t{ u32 m_unTotalMatchingResults; /* indicates whether this data was retrieved from the local on-disk cache */ - int m_bCachedData; + steamapi_bool m_bCachedData; /* If a paging cursor was used, then this will be the next cursor to get the * next result set. */ @@ -282,7 +282,7 @@ struct SteamUGCRequestUGCDetailsResult_t{ SteamUGCDetails_t m_details; /* indicates whether this data was retrieved from the local on-disk cache */ - int m_bCachedData; + steamapi_bool m_bCachedData; }; enum { k_iSteamUGCRequestUGCDetailsResult = k_iSteamUGCCallbacks + 2 }; @@ -296,7 +296,7 @@ struct CreateItemResult_t{ /* new item got this UGC PublishFileID */ PublishedFileId_t m_nPublishedFileId; - int m_bUserNeedsToAcceptWorkshopLegalAgreement; + steamapi_bool m_bUserNeedsToAcceptWorkshopLegalAgreement; }; enum { k_iCreateItemResult = k_iSteamUGCCallbacks + 3 }; @@ -307,7 +307,7 @@ enum { k_iCreateItemResult = k_iSteamUGCCallbacks + 3 }; typedef struct SubmitItemUpdateResult_t SubmitItemUpdateResult_t; struct SubmitItemUpdateResult_t{ EResult m_eResult; - int m_bUserNeedsToAcceptWorkshopLegalAgreement; + steamapi_bool m_bUserNeedsToAcceptWorkshopLegalAgreement; PublishedFileId_t m_nPublishedFileId; }; enum { k_iSubmitItemUpdateResult = k_iSteamUGCCallbacks + 4 }; @@ -342,7 +342,7 @@ typedef struct UserFavoriteItemsListChanged_t UserFavoriteItemsListChanged_t; struct UserFavoriteItemsListChanged_t{ PublishedFileId_t m_nPublishedFileId; EResult m_eResult; - int m_bWasAddRequest; + steamapi_bool m_bWasAddRequest; }; enum { k_iUserFavoriteItemsListChanged = k_iSteamUGCCallbacks + 7 }; @@ -353,7 +353,7 @@ typedef struct SetUserItemVoteResult_t SetUserItemVoteResult_t; struct SetUserItemVoteResult_t{ PublishedFileId_t m_nPublishedFileId; EResult m_eResult; - int m_bVoteUp; + steamapi_bool m_bVoteUp; }; enum { k_iSetUserItemVoteResult = k_iSteamUGCCallbacks + 8 }; @@ -364,9 +364,9 @@ typedef struct GetUserItemVoteResult_t GetUserItemVoteResult_t; struct GetUserItemVoteResult_t{ PublishedFileId_t m_nPublishedFileId; EResult m_eResult; - int m_bVotedUp; - int m_bVotedDown; - int m_bVoteSkipped; + steamapi_bool m_bVotedUp; + steamapi_bool m_bVotedDown; + steamapi_bool m_bVoteSkipped; }; enum { k_iGetUserItemVoteResult = k_iSteamUGCCallbacks + 9 }; @@ -479,8 +479,8 @@ struct WorkshopEULAStatus_t{ AppId_t m_nAppID; u32 m_unVersion; RTime32 m_rtAction; - int m_bAccepted; - int m_bNeedsAction; + steamapi_bool m_bAccepted; + steamapi_bool m_bNeedsAction; }; enum { k_iWorkshopEULAStatus = k_iSteamUGCCallbacks + 20 }; @@ -520,40 +520,40 @@ UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest( SteamAPICall_t SteamAPI_ISteamUGC_SendQueryUGCRequest( ISteamUGC* self, UGCQueryHandle_t handle ); -int SteamAPI_ISteamUGC_GetQueryUGCResult( +steamapi_bool SteamAPI_ISteamUGC_GetQueryUGCResult( ISteamUGC *self, UGCQueryHandle_t handle, u32 index, SteamUGCDetails_t *pDetails ); u32 SteamAPI_ISteamUGC_GetQueryUGCNumTags( ISteamUGC* self, UGCQueryHandle_t handle, u32 index ); -int SteamAPI_ISteamUGC_GetQueryUGCTag( +steamapi_bool SteamAPI_ISteamUGC_GetQueryUGCTag( ISteamUGC* self, UGCQueryHandle_t handle, u32 index, u32 indexTag, char * pchValue, u32 cchValueSize ); -int SteamAPI_ISteamUGC_GetQueryUGCTagDisplayName( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_GetQueryUGCTagDisplayName( ISteamUGC* self, UGCQueryHandle_t handle, u32 index, u32 indexTag, char * pchValue, u32 cchValueSize ); -int SteamAPI_ISteamUGC_GetQueryUGCPreviewURL( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_GetQueryUGCPreviewURL( ISteamUGC* self, UGCQueryHandle_t handle, u32 index, char * pchURL, u32 cchURLSize ); -int SteamAPI_ISteamUGC_GetQueryUGCMetadata( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_GetQueryUGCMetadata( ISteamUGC* self, UGCQueryHandle_t handle, u32 index, char * pchMetadata, u32 cchMetadatasize ); -int SteamAPI_ISteamUGC_GetQueryUGCChildren( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_GetQueryUGCChildren( ISteamUGC* self, UGCQueryHandle_t handle, u32 index, PublishedFileId_t *pvecPublishedFileID, u32 cMaxEntries ); -int SteamAPI_ISteamUGC_GetQueryUGCStatistic( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_GetQueryUGCStatistic( ISteamUGC* self, UGCQueryHandle_t handle, u32 index, EItemStatistic eStatType, u64 *pStatValue ); u32 SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews( ISteamUGC* self, UGCQueryHandle_t handle, u32 index ); -int SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview( ISteamUGC* self, UGCQueryHandle_t handle, u32 index, u32 previewIndex, char *pchURLOrVideoID, u32 cchURLSize, char *pchOriginalFileName, u32 cchOriginalFileNameSize, EItemPreviewType *pPreviewType ); @@ -561,75 +561,75 @@ int SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview( ISteamUGC* self, u32 SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags( ISteamUGC* self, UGCQueryHandle_t handle, u32 index ); -int SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag( ISteamUGC* self, UGCQueryHandle_t handle, u32 index, u32 keyValueTagIndex, char *pchKey, u32 cchKeySize, char * pchValue, u32 cchValueSize ); -int SteamAPI_ISteamUGC_GetQueryFirstUGCKeyValueTag( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_GetQueryFirstUGCKeyValueTag( ISteamUGC* self, UGCQueryHandle_t handle, u32 index, const char *pchKey, char *pchValue, u32 cchValueSize ); -int SteamAPI_ISteamUGC_ReleaseQueryUGCRequest( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_ReleaseQueryUGCRequest( ISteamUGC* self, UGCQueryHandle_t handle ); -int SteamAPI_ISteamUGC_AddRequiredTag( ISteamUGC* self, UGCQueryHandle_t handle, - const char * pTagName ); +steamapi_bool SteamAPI_ISteamUGC_AddRequiredTag( ISteamUGC* self, + UGCQueryHandle_t handle, const char * pTagName ); -int SteamAPI_ISteamUGC_AddRequiredTagGroup( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_AddRequiredTagGroup( ISteamUGC* self, UGCQueryHandle_t handle, const SteamParamStringArray_t * pTagGroups ); -int SteamAPI_ISteamUGC_AddExcludedTag( ISteamUGC* self, UGCQueryHandle_t handle, - const char * pTagName ); +steamapi_bool SteamAPI_ISteamUGC_AddExcludedTag( ISteamUGC* self, + UGCQueryHandle_t handle, const char * pTagName ); -int SteamAPI_ISteamUGC_SetReturnOnlyIDs( ISteamUGC* self, - UGCQueryHandle_t handle, int bReturnOnlyIDs ); +steamapi_bool SteamAPI_ISteamUGC_SetReturnOnlyIDs( ISteamUGC* self, + UGCQueryHandle_t handle, steamapi_bool bReturnOnlyIDs ); -int SteamAPI_ISteamUGC_SetReturnKeyValueTags( ISteamUGC* self, - UGCQueryHandle_t handle, int bReturnKeyValueTags ); +steamapi_bool SteamAPI_ISteamUGC_SetReturnKeyValueTags( ISteamUGC* self, + UGCQueryHandle_t handle, steamapi_bool bReturnKeyValueTags ); -int SteamAPI_ISteamUGC_SetReturnLongDescription( ISteamUGC* self, - UGCQueryHandle_t handle, int bReturnLongDescription ); +steamapi_bool SteamAPI_ISteamUGC_SetReturnLongDescription( ISteamUGC* self, + UGCQueryHandle_t handle, steamapi_bool bReturnLongDescription ); -int SteamAPI_ISteamUGC_SetReturnMetadata( ISteamUGC* self, - UGCQueryHandle_t handle, int bReturnMetadata ); +steamapi_bool SteamAPI_ISteamUGC_SetReturnMetadata( ISteamUGC* self, + UGCQueryHandle_t handle, steamapi_bool bReturnMetadata ); -int SteamAPI_ISteamUGC_SetReturnChildren( ISteamUGC* self, - UGCQueryHandle_t handle, int bReturnChildren ); +steamapi_bool SteamAPI_ISteamUGC_SetReturnChildren( ISteamUGC* self, + UGCQueryHandle_t handle, steamapi_bool bReturnChildren ); -int SteamAPI_ISteamUGC_SetReturnAdditionalPreviews( ISteamUGC* self, - UGCQueryHandle_t handle, int bReturnAdditionalPreviews ); +steamapi_bool SteamAPI_ISteamUGC_SetReturnAdditionalPreviews( ISteamUGC* self, + UGCQueryHandle_t handle, steamapi_bool bReturnAdditionalPreviews ); -int SteamAPI_ISteamUGC_SetReturnTotalOnly( ISteamUGC* self, - UGCQueryHandle_t handle, int bReturnTotalOnly ); +steamapi_bool SteamAPI_ISteamUGC_SetReturnTotalOnly( ISteamUGC* self, + UGCQueryHandle_t handle, steamapi_bool bReturnTotalOnly ); -int SteamAPI_ISteamUGC_SetReturnPlaytimeStats( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetReturnPlaytimeStats( ISteamUGC* self, UGCQueryHandle_t handle, u32 unDays ); -int SteamAPI_ISteamUGC_SetLanguage( ISteamUGC* self, UGCQueryHandle_t handle, - const char * pchLanguage ); +steamapi_bool SteamAPI_ISteamUGC_SetLanguage( ISteamUGC* self, + UGCQueryHandle_t handle, const char * pchLanguage ); -int SteamAPI_ISteamUGC_SetAllowCachedResponse( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetAllowCachedResponse( ISteamUGC* self, UGCQueryHandle_t handle, u32 unMaxAgeSeconds ); -int SteamAPI_ISteamUGC_SetCloudFileNameFilter( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetCloudFileNameFilter( ISteamUGC* self, UGCQueryHandle_t handle, const char * pMatchCloudFileName ); -int SteamAPI_ISteamUGC_SetMatchAnyTag( ISteamUGC* self, UGCQueryHandle_t handle, - int bMatchAnyTag ); +steamapi_bool SteamAPI_ISteamUGC_SetMatchAnyTag( ISteamUGC* self, + UGCQueryHandle_t handle, steamapi_bool bMatchAnyTag ); -int SteamAPI_ISteamUGC_SetSearchText( ISteamUGC* self, UGCQueryHandle_t handle, - const char * pSearchText ); +steamapi_bool SteamAPI_ISteamUGC_SetSearchText( ISteamUGC* self, + UGCQueryHandle_t handle, const char * pSearchText ); -int SteamAPI_ISteamUGC_SetRankedByTrendDays( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetRankedByTrendDays( ISteamUGC* self, UGCQueryHandle_t handle, u32 unDays ); -int SteamAPI_ISteamUGC_SetTimeCreatedDateRange( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetTimeCreatedDateRange( ISteamUGC* self, UGCQueryHandle_t handle, RTime32 rtStart, RTime32 rtEnd ); -int SteamAPI_ISteamUGC_SetTimeUpdatedDateRange( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetTimeUpdatedDateRange( ISteamUGC* self, UGCQueryHandle_t handle, RTime32 rtStart, RTime32 rtEnd ); -int SteamAPI_ISteamUGC_AddRequiredKeyValueTag( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_AddRequiredKeyValueTag( ISteamUGC* self, UGCQueryHandle_t handle, const char * pKey, const char * pValue ); SteamAPICall_t SteamAPI_ISteamUGC_RequestUGCDetails( ISteamUGC* self, @@ -641,57 +641,57 @@ SteamAPICall_t SteamAPI_ISteamUGC_CreateItem( ISteamUGC* self, UGCUpdateHandle_t SteamAPI_ISteamUGC_StartItemUpdate( ISteamUGC* self, AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID ); -int SteamAPI_ISteamUGC_SetItemTitle( ISteamUGC* self, UGCUpdateHandle_t handle, - const char * pchTitle ); +steamapi_bool SteamAPI_ISteamUGC_SetItemTitle( ISteamUGC* self, + UGCUpdateHandle_t handle, const char * pchTitle ); -int SteamAPI_ISteamUGC_SetItemDescription( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetItemDescription( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchDescription ); -int SteamAPI_ISteamUGC_SetItemUpdateLanguage( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetItemUpdateLanguage( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchLanguage ); -int SteamAPI_ISteamUGC_SetItemMetadata( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetItemMetadata( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchMetaData ); -int SteamAPI_ISteamUGC_SetItemVisibility( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetItemVisibility( ISteamUGC* self, UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility ); -int SteamAPI_ISteamUGC_SetItemTags( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetItemTags( ISteamUGC* self, UGCUpdateHandle_t updateHandle, const SteamParamStringArray_t * pTags ); -int SteamAPI_ISteamUGC_SetItemContent( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetItemContent( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszContentFolder ); -int SteamAPI_ISteamUGC_SetItemPreview( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_SetItemPreview( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszPreviewFile ); -int SteamAPI_ISteamUGC_SetAllowLegacyUpload( ISteamUGC* self, - UGCUpdateHandle_t handle, int bAllowLegacyUpload ); +steamapi_bool SteamAPI_ISteamUGC_SetAllowLegacyUpload( ISteamUGC* self, + UGCUpdateHandle_t handle, steamapi_bool bAllowLegacyUpload ); -int SteamAPI_ISteamUGC_RemoveAllItemKeyValueTags( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_RemoveAllItemKeyValueTags( ISteamUGC* self, UGCUpdateHandle_t handle ); -int SteamAPI_ISteamUGC_RemoveItemKeyValueTags( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_RemoveItemKeyValueTags( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchKey ); -int SteamAPI_ISteamUGC_AddItemKeyValueTag( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_AddItemKeyValueTag( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchKey, const char * pchValue ); -int SteamAPI_ISteamUGC_AddItemPreviewFile( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_AddItemPreviewFile( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszPreviewFile, EItemPreviewType type ); -int SteamAPI_ISteamUGC_AddItemPreviewVideo( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_AddItemPreviewVideo( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszVideoID ); -int SteamAPI_ISteamUGC_UpdateItemPreviewFile( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_UpdateItemPreviewFile( ISteamUGC* self, UGCUpdateHandle_t handle, u32 index, const char * pszPreviewFile ); -int SteamAPI_ISteamUGC_UpdateItemPreviewVideo( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_UpdateItemPreviewVideo( ISteamUGC* self, UGCUpdateHandle_t handle, u32 index, const char * pszVideoID ); -int SteamAPI_ISteamUGC_RemoveItemPreview( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_RemoveItemPreview( ISteamUGC* self, UGCUpdateHandle_t handle, u32 index ); SteamAPICall_t SteamAPI_ISteamUGC_SubmitItemUpdate( ISteamUGC* self, @@ -701,7 +701,7 @@ EItemUpdateStatus SteamAPI_ISteamUGC_GetItemUpdateProgress( ISteamUGC* self, UGCUpdateHandle_t handle, u64 * punBytesProcessed, u64 * punBytesTotal ); SteamAPICall_t SteamAPI_ISteamUGC_SetUserItemVote( ISteamUGC* self, - PublishedFileId_t nPublishedFileID, int bVoteUp ); + PublishedFileId_t nPublishedFileID, steamapi_bool bVoteUp ); SteamAPICall_t SteamAPI_ISteamUGC_GetUserItemVote( ISteamUGC* self, PublishedFileId_t nPublishedFileID ); @@ -726,21 +726,22 @@ u32 SteamAPI_ISteamUGC_GetSubscribedItems( ISteamUGC* self, u32 SteamAPI_ISteamUGC_GetItemState( ISteamUGC* self, PublishedFileId_t nPublishedFileID ); -int SteamAPI_ISteamUGC_GetItemInstallInfo( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_GetItemInstallInfo( ISteamUGC* self, PublishedFileId_t nPublishedFileID, u64 * punSizeOnDisk, char * pchFolder, u32 cchFolderSize, u32 * punTimeStamp ); -int SteamAPI_ISteamUGC_GetItemDownloadInfo( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_GetItemDownloadInfo( ISteamUGC* self, PublishedFileId_t nPublishedFileID, u64 * punBytesDownloaded, u64 * punBytesTotal ); -int SteamAPI_ISteamUGC_DownloadItem( ISteamUGC* self, - PublishedFileId_t nPublishedFileID, int bHighPriority ); +steamapi_bool SteamAPI_ISteamUGC_DownloadItem( ISteamUGC* self, + PublishedFileId_t nPublishedFileID, steamapi_bool bHighPriority ); -int SteamAPI_ISteamUGC_BInitWorkshopForGameServer( ISteamUGC* self, +steamapi_bool SteamAPI_ISteamUGC_BInitWorkshopForGameServer( ISteamUGC* self, DepotId_t unWorkshopDepotID, const char * pszFolder ); -void SteamAPI_ISteamUGC_SuspendDownloads( ISteamUGC* self, int bSuspend ); +void SteamAPI_ISteamUGC_SuspendDownloads( ISteamUGC* self, + steamapi_bool bSuspend ); SteamAPICall_t SteamAPI_ISteamUGC_StartPlaytimeTracking( ISteamUGC* self, PublishedFileId_t * pvecPublishedFileID, u32 unNumPublishedFileIDs ); @@ -771,7 +772,7 @@ SteamAPICall_t SteamAPI_ISteamUGC_GetAppDependencies( ISteamUGC* self, SteamAPICall_t SteamAPI_ISteamUGC_DeleteItem( ISteamUGC* self, PublishedFileId_t nPublishedFileID ); -int SteamAPI_ISteamUGC_ShowWorkshopEULA( ISteamUGC* self ); +steamapi_bool SteamAPI_ISteamUGC_ShowWorkshopEULA( ISteamUGC* self ); SteamAPICall_t SteamAPI_ISteamUGC_GetWorkshopEULAStatus( ISteamUGC* self );