mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +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 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.Size = file.View.ReadUInt32(16 * i + 16 + 8);
|
||||
entry.UnpackedSize = file.View.ReadUInt32(16 * i + 16 + 8);
|
||||
if (!entry.CheckPlacement(file.MaxOffset))
|
||||
return null;
|
||||
dir.Add(entry);
|
||||
|
Loading…
Reference in New Issue
Block a user