(ArcAI5Opener.OpenEntry): decompress entries.

This commit is contained in:
morkt 2016-01-20 01:04:00 +04:00
parent 689b1d48d1
commit 25c584d2ca
2 changed files with 11 additions and 0 deletions

View File

@ -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;

View File

@ -402,6 +402,7 @@ Zettai Meikyuu Grimm<br/>
</td></tr>
<tr class="odd"><td>*.mgf</td><td><tt>MalieGF</tt></td><td>Yes</td></tr>
<tr><td>*.arc</td><td>-</td><td>No</td><td rowspan="2">AI5WIN</td><td rowspan="2">
Ai no Katachi ~Ecchi na Onna no Ko wa Kirai... Desu ka?~<br/>
Ai Shimai ~Docchi ni Suru no!!~<br/>
Ai Shimai Tsubomi...<br/>
Dorei Kaigo<br/>