From 6010c92b3ec972a91a2170da4d1611231881ccbd Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 10 Aug 2018 18:50:33 +0400 Subject: [PATCH] (AGSI): return encrypted stream when key is unknown. --- ArcFormats/FC01/ArcPAK.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ArcFormats/FC01/ArcPAK.cs b/ArcFormats/FC01/ArcPAK.cs index 72a66c3f..3b20e89b 100644 --- a/ArcFormats/FC01/ArcPAK.cs +++ b/ArcFormats/FC01/ArcPAK.cs @@ -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