mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(InputCryptoStream): new class derived from CryptoStream.
properly dispose transformations used by CryptoStream.
This commit is contained in:
@@ -104,7 +104,7 @@ namespace GameRes.Formats.NSystem
|
||||
|| arc.File.View.AsciiEqual (entry.Offset, "MSCENARIO FILE "))
|
||||
return base.OpenEntry (arc, entry);
|
||||
var input = arc.File.CreateStream (entry.Offset, entry.Size);
|
||||
return new CryptoStream (input, new MsdTransform (msarc.Key), CryptoStreamMode.Read);
|
||||
return new InputCryptoStream (input, new MsdTransform (msarc.Key));
|
||||
}
|
||||
|
||||
string QueryPassword (string arc_name)
|
||||
|
||||
Reference in New Issue
Block a user