From 387a79a94bb79bd81183b9bc4a79eb183b62f3b6 Mon Sep 17 00:00:00 2001 From: Ryan Stecker Date: Sun, 19 Jun 2011 16:19:55 -0500 Subject: [PATCH] Updated DepotDownloader. It _should_ work now. The information contained within this revision comment is provided on an "as is" basis without any warranties, expressed or otherwise implied. --- DepotDownloader/ContentDownloader.cs | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 48ad6695..2ca3b8be 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -194,31 +194,7 @@ namespace DepotDownloader var file = session.DownloadFile( dirEntry, ContentServerClient.StorageSession.DownloadPriority.High ); - if ( file.Mode == ContentServerClient.StorageSession.File.FileMode.Compressed ) - { - // file is compressed - using ( MemoryStream ms = new MemoryStream( file.Data ) ) - using ( DeflateStream ds = new DeflateStream( ms, CompressionMode.Decompress ) ) - { - // skip zlib header - ms.Seek( 2, SeekOrigin.Begin ); - - byte[] inflated = new byte[ dirEntry.SizeOrCount ]; - ds.Read( inflated, 0, inflated.Length ); - - file.Data = inflated; - } - } - else - { - Debug.Assert( false, string.Format( - "Got file with unexpected filemode!\n" + - "DepotID: {0}\nVersion: {1}\nFile: {2}\nMode: {3}\n", - depotId, depotVersion, dirEntry.FullName, file.Mode - ) ); - } - - File.WriteAllBytes( downloadPath, file.Data ); + File.WriteAllBytes( downloadPath, file ); } if ( onlyManifest )