mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 13:48:57 +08:00
Compare commits
7 Commits
GARbro-Mod
...
GARbro-Mod
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da8d1f3d0a | ||
|
|
06f6215c04 | ||
|
|
6a1bab2a70 | ||
|
|
c70a5fdba9 | ||
|
|
6855967b04 | ||
|
|
4fad98038f | ||
|
|
142f0b53be |
@@ -25,7 +25,9 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.Composition;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using GameRes.Compression;
|
||||
using GameRes.Utility;
|
||||
|
||||
namespace GameRes.Formats.KiriKiri
|
||||
@@ -85,5 +87,13 @@ namespace GameRes.Formats.KiriKiri
|
||||
throw new InvalidFormatException();
|
||||
return Binary.BigEndian (input.ReadUInt32());
|
||||
}
|
||||
|
||||
public override Stream OpenEntry(ArcFile arc, Entry entry)
|
||||
{
|
||||
PackedEntry packed_entry = entry as PackedEntry;
|
||||
if (null == packed_entry || packed_entry.Size == packed_entry.UnpackedSize)
|
||||
return arc.File.CreateStream(entry.Offset, entry.Size);
|
||||
return new ZLibStream(arc.File.CreateStream(entry.Offset, entry.Size), CompressionMode.Decompress);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user