mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Let ZoneCodeGenerator print the size of the struct as a comment in load method
This commit is contained in:
parent
f59cb29cb2
commit
413034f7b2
@ -256,7 +256,7 @@ void $LoaderClassName(context.Asset)$::Load_$structure.Type.Name$(const bool atS
|
||||
|
||||
if(atStreamStart)
|
||||
$if(!structure.Computations.DynamicMember)$
|
||||
m_stream->Load<$structure.Type.FullName$>($TypeVarName(structure.Type)$);$\\$
|
||||
m_stream->Load<$structure.Type.FullName$>($TypeVarName(structure.Type)$); // Size: $structure.Type.Size$$\\$
|
||||
$else$
|
||||
m_stream->LoadPartial<$structure.Type.FullName$>($TypeVarName(structure.Type)$, offsetof($structure.Type.FullName$, $structure.Computations.DynamicMember.Member.Name$));$\\$
|
||||
$endif$
|
||||
|
Loading…
x
Reference in New Issue
Block a user