use XoredStream instead of CryptoStream with XorTransform.

This commit is contained in:
morkt
2016-12-25 06:47:13 +04:00
parent 544b4cb067
commit a303a66501
4 changed files with 5 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ namespace GameRes.Formats.Slg
public override Stream OpenEntry (ArcFile arc, Entry entry)
{
var input = arc.File.CreateStream (entry.Offset, entry.Size);
return new CryptoStream (input, new XorTransform (0x90), CryptoStreamMode.Read);
return new XoredStream (input, 0x90);
}
}
}