mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-26 23:24:00 +08:00
(EME): tweaked scripts decompression.
This commit is contained in:
parent
78e1ccc39d
commit
a63456338d
@ -41,6 +41,11 @@ namespace GameRes.Formats.EmonEngine
|
|||||||
public override bool IsHierarchic { get { return false; } }
|
public override bool IsHierarchic { get { return false; } }
|
||||||
public override bool CanWrite { get { return false; } }
|
public override bool CanWrite { get { return false; } }
|
||||||
|
|
||||||
|
public EmeOpener ()
|
||||||
|
{
|
||||||
|
Extensions = new string[] { "eme", "rre" };
|
||||||
|
}
|
||||||
|
|
||||||
public override ArcFile TryOpen (ArcView file)
|
public override ArcFile TryOpen (ArcView file)
|
||||||
{
|
{
|
||||||
if (!file.View.AsciiEqual (4, "ATA "))
|
if (!file.View.AsciiEqual (4, "ATA "))
|
||||||
@ -106,7 +111,7 @@ namespace GameRes.Formats.EmonEngine
|
|||||||
return new PrefixStream (header, input);
|
return new PrefixStream (header, input);
|
||||||
}
|
}
|
||||||
int unpacked_size = LittleEndian.ToInt32 (header, 4);
|
int unpacked_size = LittleEndian.ToInt32 (header, 4);
|
||||||
if (0 != unpacked_size)
|
if (0 != unpacked_size && unpacked_size < entry.UnpackedSize)
|
||||||
{
|
{
|
||||||
uint packed_size = LittleEndian.ToUInt32 (header, 0);
|
uint packed_size = LittleEndian.ToUInt32 (header, 0);
|
||||||
int part1_size = (int)entry.UnpackedSize - unpacked_size;
|
int part1_size = (int)entry.UnpackedSize - unpacked_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user