From 413034f7b2b088dcc499edea0471a597b0082e81 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 7 Sep 2020 12:51:49 +0200 Subject: [PATCH] Let ZoneCodeGenerator print the size of the struct as a comment in load method --- src/ZoneCodeGenerator/Generating/Templates/ZoneLoad.stg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZoneCodeGenerator/Generating/Templates/ZoneLoad.stg b/src/ZoneCodeGenerator/Generating/Templates/ZoneLoad.stg index 882ae735..4ccf7845 100644 --- a/src/ZoneCodeGenerator/Generating/Templates/ZoneLoad.stg +++ b/src/ZoneCodeGenerator/Generating/Templates/ZoneLoad.stg @@ -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$