Merge pull request #610 from SteamRE/609-freetodownload-depotfromapp

Fix getting manifest code for freetodownload apps that use depotfromapp
This commit is contained in:
Pavel Djundik
2025-03-23 16:57:44 +02:00
committed by GitHub

View File

@@ -603,10 +603,17 @@ namespace DepotDownloader
return null;
}
// For depots that are proxied through depotfromapp, we still need to resolve the proxy app id
// For depots that are proxied through depotfromapp, we still need to resolve the proxy app id, unless the app is freetodownload
var containingAppId = appId;
var proxyAppId = GetSteam3DepotProxyAppId(depotId, appId);
if (proxyAppId != INVALID_APP_ID) containingAppId = proxyAppId;
if (proxyAppId != INVALID_APP_ID)
{
var common = GetSteam3AppSection(appId, EAppInfoSection.Common);
if (common == null || !common["FreeToDownload"].AsBoolean())
{
containingAppId = proxyAppId;
}
}
return new DepotDownloadInfo(depotId, containingAppId, manifestId, branch, installDir, depotKey);
}