mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
Format some files, removes unreferenced files.
This commit is contained in:
@@ -88,12 +88,12 @@ namespace GameRes.Formats.KiriKiri
|
||||
return Binary.BigEndian (input.ReadUInt32());
|
||||
}
|
||||
|
||||
public override Stream OpenEntry(ArcFile arc, Entry entry)
|
||||
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);
|
||||
return arc.File.CreateStream (entry.Offset, entry.Size);
|
||||
return new ZLibStream (arc.File.CreateStream (entry.Offset, entry.Size), CompressionMode.Decompress);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ namespace GameRes.Formats.KiriKiri
|
||||
{ 0x584d4b4a, "image" }, // TLG
|
||||
};
|
||||
|
||||
internal void GuessEntryTypeBySignature(Entry entry, uint signature)
|
||||
internal void GuessEntryTypeBySignature (Entry entry, uint signature)
|
||||
{
|
||||
if (FileTypesMap.TryGetValue (signature, out var type))
|
||||
entry.Type = type;
|
||||
|
||||
Reference in New Issue
Block a user