From a86eac90de994b6e94856bbcb7d0381656d8488c Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 30 Jun 2011 01:18:30 -0500 Subject: [PATCH] Fixed excluding files from exclude.lst on non-Windows platforms. --- DepotDownloader/ContentDownloader.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index aefc9d4a..ffb408e8 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -63,6 +63,10 @@ namespace DepotDownloader ( dirEntry.Attributes & Steam2Manifest.Node.Attribs.EncryptedFile ) == 0 ) { string excludeFile = Encoding.UTF8.GetString( session.DownloadFile( dirEntry ) ); + if ( Environment.OSVersion.Platform == PlatformID.Win32NT ) + excludeFile = excludeFile.Replace( '/', Path.DirectorySeparatorChar ); + else + excludeFile = excludeFile.Replace( '\\', Path.DirectorySeparatorChar ); excludeList = excludeFile.Split( new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries ); break; }