mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +08:00
(MBF): handle single-entries archives.
This commit is contained in:
parent
c3b3bb0ee3
commit
304a448937
@ -49,7 +49,7 @@ namespace GameRes.Formats.Will
|
|||||||
return null;
|
return null;
|
||||||
uint data_offset = file.View.ReadUInt32 (8);
|
uint data_offset = file.View.ReadUInt32 (8);
|
||||||
uint index_offset = 0x20;
|
uint index_offset = 0x20;
|
||||||
if (0 != (file.View.ReadByte (0xC) & 1))
|
if (0 != (file.View.ReadByte (0xC) & 1) && count > 1)
|
||||||
{
|
{
|
||||||
index_offset += file.View.ReadUInt16 (index_offset);
|
index_offset += file.View.ReadUInt16 (index_offset);
|
||||||
--count;
|
--count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user