mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
binary parsing working
finally....
This commit is contained in:
parent
140e9dbfc6
commit
b074b9fc1f
4 changed files with 124 additions and 62 deletions
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue