DepotDownloader: No longer downloads depots meant for other platforms when the -game option is used.

pull/8/head
Scott Ehlert 15 years ago
parent 3cbe8539a6
commit c4e3360dc4

@ -170,14 +170,20 @@ namespace DepotDownloader
App serverAppInfoBlob = GetAppBlob( 4 );
PlatformID platform = Environment.OSVersion.Platform;
string suffix = "";
if (platform == PlatformID.Win32NT)
suffix = "-win32";
else if (platform == PlatformID.Unix)
suffix = "-linux";
foreach ( var blobField in serverAppInfoBlob.FileSystems )
{
string mountName = blobField.Name;
if ( mountName.Equals( gameName, StringComparison.OrdinalIgnoreCase ) ||
mountName.Equals( gameName + "-win32", StringComparison.OrdinalIgnoreCase ) ||
mountName.Equals( gameName + "-linux", StringComparison.OrdinalIgnoreCase ) )
mountName.Equals( gameName + suffix, StringComparison.OrdinalIgnoreCase ) )
{
appIDs.Add( blobField.AppID );
}

Loading…
Cancel
Save