mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-02-04 05:31:18 +01:00
Merge pull request #610 from SteamRE/609-freetodownload-depotfromapp
Fix getting manifest code for freetodownload apps that use depotfromapp
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user