binary parsing working

finally....
This commit is contained in:
marauder2k7 2025-10-12 15:32:12 +01:00
parent 140e9dbfc6
commit b074b9fc1f
4 changed files with 124 additions and 62 deletions

View file

@ -345,8 +345,14 @@ void TamlBinaryReader::parseCustomElements( Stream& stream, TamlCallbacks* pCall
// Add custom node.
TamlCustomNode* pCustomNode = customNodes.addNode( nodeName );
U32 nodeChildrenCount = 0;
stream.read(&nodeChildrenCount);
if (nodeChildrenCount == 0)
return;
// Parse the custom node.
parseCustomNode( stream, pCustomNode, versionId );
for (U32 nodeChild = 0; nodeChild < nodeChildrenCount; ++nodeChild)
parseCustomNode( stream, pCustomNode, versionId );
}
// Do we have callbacks?
@ -428,4 +434,4 @@ void TamlBinaryReader::parseCustomNode( Stream& stream, TamlCustomNode* pCustomN
pChildNode->addField( fieldName, valueBuffer );
}
}
}
}