mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-19 15:51:50 +00:00
Fixed excluding files from exclude.lst on non-Windows platforms.
This commit is contained in:
1 parent
e5fa0ca62f
commit
a86eac90de
1 file changed
+4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user