mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ArcAI5Opener.OpenEntry): decompress entries.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user