mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +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 aent = (AgsiEntry)entry;
|
||||||
var aarc = arc as AgsiArchive;
|
var aarc = arc as AgsiArchive;
|
||||||
Stream input;
|
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);
|
input = OpenEncryptedEntry (aarc, aent);
|
||||||
else
|
else
|
||||||
input = arc.File.CreateStream (entry.Offset, entry.Size);
|
return base.OpenEntry (arc, entry);
|
||||||
switch (aent.Method)
|
switch (aent.Method)
|
||||||
{
|
{
|
||||||
case 0: // no compression
|
case 0: // no compression
|
||||||
|
Loading…
Reference in New Issue
Block a user