mirror of
				https://github.com/Laupetin/OpenAssetTools.git
				synced 2025-10-30 18:17:15 +00:00 
			
		
		
		
	Sort StructuredDataDef members and entries alphabetically after parsing
This commit is contained in:
		| @@ -54,12 +54,6 @@ namespace sdd::enum_scope_sequences | ||||
|         void ProcessMatch(StructuredDataDefParserState* state, SequenceResult<SimpleParserValue>& result) const override | ||||
|         { | ||||
|             assert(state->m_current_enum != nullptr); | ||||
|  | ||||
|             std::sort(state->m_current_enum->m_entries.begin(), state->m_current_enum->m_entries.end(), [](const CommonStructuredDataEnumEntry& e1, const CommonStructuredDataEnumEntry& e2) | ||||
|             { | ||||
|                 return e1.m_name < e2.m_name; | ||||
|             }); | ||||
|  | ||||
|             state->m_current_enum = nullptr; | ||||
|         } | ||||
|     }; | ||||
|   | ||||
| @@ -234,9 +234,6 @@ namespace sdd::struct_scope_sequences | ||||
|  | ||||
|             state->m_current_struct->m_size_in_byte = utils::Align(state->m_current_struct_padding_offset, 8u) / 8; | ||||
|             state->m_current_struct_padding_offset = 0u; | ||||
|  | ||||
|             // Sort the entries of the struct alphabetically | ||||
|             state->m_current_struct->SortPropertiesByName(); | ||||
|             state->m_current_struct = nullptr; | ||||
|         } | ||||
|     }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user