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

pull/8/head
Scott Ehlert 14 years ago
parent e5fa0ca62f
commit a86eac90de

@ -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;
}

Loading…
Cancel
Save