Might as well implement the other version of GetItemInstallInfo too.

This commit is contained in:
Mr_Goldberg 2020-06-14 16:17:33 -04:00
parent 9154f04f60
commit 25d53b6542
No known key found for this signature in database
GPG key ID: 8597D87419DEF278

View file

@ -671,7 +671,7 @@ uint32 GetSubscribedItems( PublishedFileId_t* pvecPublishedFileID, uint32 cMaxEn
// get EItemState flags about item on this client // get EItemState flags about item on this client
uint32 GetItemState( PublishedFileId_t nPublishedFileID ) uint32 GetItemState( PublishedFileId_t nPublishedFileID )
{ {
PRINT_DEBUG("Steam_UGC::GetItemState\n"); PRINT_DEBUG("Steam_UGC::GetItemState %llu\n", nPublishedFileID);
std::lock_guard<std::recursive_mutex> lock(global_mutex); std::lock_guard<std::recursive_mutex> lock(global_mutex);
if (subscribed.count(nPublishedFileID)) { if (subscribed.count(nPublishedFileID)) {
if (settings->isModInstalled(nPublishedFileID)) { if (settings->isModInstalled(nPublishedFileID)) {
@ -727,7 +727,7 @@ bool GetItemUpdateInfo( PublishedFileId_t nPublishedFileID, bool *pbNeedsUpdate,
bool GetItemInstallInfo( PublishedFileId_t nPublishedFileID, uint64 *punSizeOnDisk, char *pchFolder, uint32 cchFolderSize ) // returns true if item is installed bool GetItemInstallInfo( PublishedFileId_t nPublishedFileID, uint64 *punSizeOnDisk, char *pchFolder, uint32 cchFolderSize ) // returns true if item is installed
{ {
PRINT_DEBUG("Steam_UGC::GetItemInstallInfo older\n"); PRINT_DEBUG("Steam_UGC::GetItemInstallInfo older\n");
return false; return GetItemInstallInfo(nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, (uint32*) nullptr);
} }