mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(AGSI): return encrypted stream when key is unknown.
This commit is contained in:
parent
5735baf9db
commit
6010c92b3e
@ -101,10 +101,12 @@ namespace GameRes.Formats.FC01
|
||||
var aent = (AgsiEntry)entry;
|
||||
var aarc = arc as AgsiArchive;
|
||||
Stream input;
|
||||
if (aent.IsEncrypted && aarc != null && aarc.Key != null)
|
||||
if (!aent.IsEncrypted)
|
||||
input = arc.File.CreateStream (entry.Offset, entry.Size);
|
||||
else if (aarc != null && aarc.Key != null)
|
||||
input = OpenEncryptedEntry (aarc, aent);
|
||||
else
|
||||
input = arc.File.CreateStream (entry.Offset, entry.Size);
|
||||
return base.OpenEntry (arc, entry);
|
||||
switch (aent.Method)
|
||||
{
|
||||
case 0: // no compression
|
||||
|
Loading…
Reference in New Issue
Block a user