mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
AutoEntry.Offset set in constructor now.
This commit is contained in:
parent
f5d2cac377
commit
127a2bcf4d
@ -120,8 +120,7 @@ namespace GameRes.Formats.KAAS
|
||||
if (!is_voice)
|
||||
entry = AutoEntry.Create (file, offset, i.ToString ("D4"));
|
||||
else
|
||||
entry = new Entry { Name = string.Format ("{0:D4}.pb", i), Type = "archive" };
|
||||
entry.Offset = offset;
|
||||
entry = new Entry { Name = string.Format ("{0:D4}.pb", i), Type = "archive", Offset = offset };
|
||||
entry.Size = file.View.ReadUInt32 (index_offset + 4);
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
|
@ -64,7 +64,6 @@ namespace GameRes.Formats.MnoViolet
|
||||
index_offset += name_size;
|
||||
uint offset = file.View.ReadUInt32 (index_offset+4);
|
||||
var entry = AutoEntry.Create (file, offset, name);
|
||||
entry.Offset = offset;
|
||||
entry.Size = file.View.ReadUInt32 (index_offset);
|
||||
if (offset <= index_size || !entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user