mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-30 17:05:37 +08:00
perf: change ARC20 into none-packed entry
This commit is contained in:
parent
797816f856
commit
5a9a873c4b
@ -36,12 +36,10 @@ namespace GameRes.Formats.MAGES
|
|||||||
}
|
}
|
||||||
var sjis = System.Text.Encoding.GetEncoding("Shift-JIS");
|
var sjis = System.Text.Encoding.GetEncoding("Shift-JIS");
|
||||||
var name = sjis.GetString(namebyte.ToArray());
|
var name = sjis.GetString(namebyte.ToArray());
|
||||||
var entry = Create<PackedEntry>(name);
|
var entry = Create<Entry>(name);
|
||||||
|
|
||||||
entry.Offset = file.View.ReadUInt32(16 * i + 16 + 4) * 2048;
|
entry.Offset = file.View.ReadUInt32(16 * i + 16 + 4) * 2048;
|
||||||
|
|
||||||
entry.Size = file.View.ReadUInt32(16 * i + 16 + 8);
|
entry.Size = file.View.ReadUInt32(16 * i + 16 + 8);
|
||||||
entry.UnpackedSize = file.View.ReadUInt32(16 * i + 16 + 8);
|
|
||||||
if (!entry.CheckPlacement(file.MaxOffset))
|
if (!entry.CheckPlacement(file.MaxOffset))
|
||||||
return null;
|
return null;
|
||||||
dir.Add(entry);
|
dir.Add(entry);
|
||||||
|
Loading…
Reference in New Issue
Block a user