Fixed excluding files from exclude.lst on non-Windows platforms.

This commit is contained in:
Scott Ehlert committed 2011-06-30 01:18:30 -05:00
1 parent e5fa0ca62f
commit a86eac90de
1 file changed
+4
+4
View File
@@ -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;
}