mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
fix setting custom align
This commit is contained in:
parent
a2fe10bba6
commit
7ff87c2b73
@ -66,6 +66,12 @@ void HeaderBlockStruct::OnClose(HeaderParserState* state)
|
||||
for (auto& member : m_members)
|
||||
structDefinition->m_members.emplace_back(std::move(member));
|
||||
|
||||
if(m_has_custom_align)
|
||||
{
|
||||
structDefinition->m_alignment_override = static_cast<unsigned>(m_custom_alignment);
|
||||
structDefinition->m_has_alignment_override = true;
|
||||
}
|
||||
|
||||
state->AddDataType(std::move(structDefinition));
|
||||
|
||||
if (m_is_typedef)
|
||||
|
@ -66,6 +66,12 @@ void HeaderBlockUnion::OnClose(HeaderParserState* state)
|
||||
for (auto& member : m_members)
|
||||
unionDefinition->m_members.emplace_back(std::move(member));
|
||||
|
||||
if (m_has_custom_align)
|
||||
{
|
||||
unionDefinition->m_alignment_override = static_cast<unsigned>(m_custom_alignment);
|
||||
unionDefinition->m_has_alignment_override = true;
|
||||
}
|
||||
|
||||
state->AddDataType(std::move(unionDefinition));
|
||||
|
||||
if (m_is_typedef)
|
||||
|
Loading…
x
Reference in New Issue
Block a user