mirror of
				https://github.com/Laupetin/OpenAssetTools.git
				synced 2025-10-31 02:26:59 +00:00 
			
		
		
		
	fix setting custom align
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user