mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(AGSI): return encrypted stream when key is unknown.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user