Fix getting manifest code for freetodownload apps that use depotfromapp

pull/610/head
Nicholas Hastings 6 months ago
parent 1e72a47846
commit 19df5910c3

@ -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);
}

Loading…
Cancel
Save