mirror of
https://github.com/4sval/FModel.git
synced 2026-04-23 01:57:48 -05:00
fixed "Cannot receive last fragment in Skip()"
This commit is contained in:
parent
c2b11f9544
commit
3aad0fc919
|
|
@ -17,7 +17,8 @@ namespace FModel.PakReader.IO
|
|||
{
|
||||
_zeroMask = header.ZeroMask;
|
||||
_fragmentIt = header.Fragments.GetEnumerator();
|
||||
Skip();
|
||||
if (header.HasValues)
|
||||
Skip();
|
||||
}
|
||||
|
||||
public bool MoveNext()
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ namespace FModel.PakReader.Parsers.Class
|
|||
{
|
||||
Dict = new Dictionary<string, object>();
|
||||
var header = new FUnversionedHeader(reader);
|
||||
if (!header.HasValues)
|
||||
return;
|
||||
using var it = new FIterator(header);
|
||||
|
||||
#if DEBUG
|
||||
|
|
@ -66,7 +68,7 @@ namespace FModel.PakReader.Parsers.Class
|
|||
|
||||
if (!structFallback && reader.ReadInt32() != 0/* && reader.Position + 16 <= maxSize*/)
|
||||
{
|
||||
new FGuid(reader);
|
||||
_ = new FGuid(reader);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -162,7 +162,8 @@ namespace FModel.PakReader.Parsers
|
|||
try
|
||||
{
|
||||
var header = new FUnversionedHeader(this);
|
||||
|
||||
if (!header.HasValues)
|
||||
continue;
|
||||
using var it = new FIterator(header);
|
||||
FConsole.AppendText(string.Concat("\n", exportType.String, ": ", Summary.Name.String), "#CA6C6C", true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user