From 25c584d2cad55c813d3b7e5672e00c1f3c45fae4 Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 20 Jan 2016 01:04:00 +0400 Subject: [PATCH] (ArcAI5Opener.OpenEntry): decompress entries. --- ArcFormats/elf/ArcAi5Win.cs | 10 ++++++++++ supported.html | 1 + 2 files changed, 11 insertions(+) diff --git a/ArcFormats/elf/ArcAi5Win.cs b/ArcFormats/elf/ArcAi5Win.cs index 5d6a864c..fa6b7cb7 100644 --- a/ArcFormats/elf/ArcAi5Win.cs +++ b/ArcFormats/elf/ArcAi5Win.cs @@ -28,6 +28,7 @@ using System.Collections.Generic; using System.ComponentModel.Composition; using System.IO; using System.Linq; +using GameRes.Compression; using GameRes.Utility; namespace GameRes.Formats.Elf @@ -90,6 +91,15 @@ namespace GameRes.Formats.Elf return null; } + public override Stream OpenEntry (ArcFile arc, Entry entry) + { + var input = arc.File.CreateStream (entry.Offset, entry.Size); + if (entry.Name.EndsWith (".mes", StringComparison.InvariantCultureIgnoreCase) + || entry.Name.EndsWith (".lib", StringComparison.InvariantCultureIgnoreCase)) + return new LzssStream (input); + return input; + } + internal class IndexReader { ArcView m_file; diff --git a/supported.html b/supported.html index e6fd073f..143d5704 100644 --- a/supported.html +++ b/supported.html @@ -402,6 +402,7 @@ Zettai Meikyuu Grimm
*.mgfMalieGFYes *.arc-NoAI5WIN +Ai no Katachi ~Ecchi na Onna no Ko wa Kirai... Desu ka?~
Ai Shimai ~Docchi ni Suru no!!~
Ai Shimai Tsubomi...
Dorei Kaigo