mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 13:48:57 +08:00
Compare commits
32 Commits
GARbro-Mod
...
GARbro-Mod
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
836afd036d | ||
|
|
c5ed1cda41 | ||
|
|
2746d3697b | ||
|
|
6e2adb4134 | ||
|
|
01d52314d5 | ||
|
|
c656fb676a | ||
|
|
a2e6bd97db | ||
|
|
0e1296c3e5 | ||
|
|
9f6e917751 | ||
|
|
9293739704 | ||
|
|
635f1b4d1c | ||
|
|
d37a33c7f5 | ||
|
|
8d8f9021bc | ||
|
|
6f3bc6d069 | ||
|
|
0ec607a49f | ||
|
|
cfdcf8b8f2 | ||
|
|
c0202a568b | ||
|
|
00812cd024 | ||
|
|
538e865146 | ||
|
|
d5ae2bb780 | ||
|
|
7045f0c502 | ||
|
|
207e223e47 | ||
|
|
ac940f8906 | ||
|
|
c5b5e97938 | ||
|
|
5c1b07f27a | ||
|
|
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -287,6 +287,8 @@ namespace GameRes.Formats.Malie
|
||||
int offset = LittleEndian.ToInt32 (m_index, current_offset+0x18);
|
||||
uint size = LittleEndian.ToUInt32 (m_index, current_offset+0x1c);
|
||||
current_offset += 0x20;
|
||||
if (name.StartsWith("/"))
|
||||
name = name.Substring(1);
|
||||
name = Path.Combine (root, name);
|
||||
if (0 == (flags & 0x30000))
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -67,6 +67,12 @@ namespace GARbro
|
||||
*/
|
||||
}
|
||||
|
||||
ImageFormat FindFormat(string format)
|
||||
{
|
||||
var range = FormatCatalog.Instance.LookupExtension<ImageFormat>(format);
|
||||
return range.FirstOrDefault();
|
||||
}
|
||||
|
||||
void Run (string[] args)
|
||||
{
|
||||
int argn = 0;
|
||||
@@ -131,7 +137,7 @@ namespace GARbro
|
||||
Console.Error.WriteLine ("{0}: unknown format", m_arc_name);
|
||||
continue;
|
||||
}
|
||||
var arc = (ArchiveFileSystem)VFS.Top;
|
||||
var arc = ((ArchiveFileSystem)VFS.Top).Source;
|
||||
if (args.Length > argn+1)
|
||||
{
|
||||
for (int i = argn+1; i < args.Length; ++i)
|
||||
|
||||
Reference in New Issue
Block a user