mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-19 15:51:50 +00:00
DepotDownloader: No longer downloads depots meant for other platforms when the -game option is used.
This commit is contained in:
1 parent
3cbe8539a6
commit
c4e3360dc4
1 file changed
+9
-3
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user