mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-14 08:47:57 -05:00
Dump CommonStructuredDataDefSet instead of the game's internal structures
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
#include "CommonStructuredDataStruct.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
CommonStructuredDataStructEntry::CommonStructuredDataStructEntry()
|
||||
: m_offset_in_bits(0u)
|
||||
{
|
||||
@ -30,3 +32,11 @@ CommonStructuredDataStruct::CommonStructuredDataStruct(std::string name)
|
||||
m_size_in_byte(0u)
|
||||
{
|
||||
}
|
||||
|
||||
void CommonStructuredDataStruct::SortProperties()
|
||||
{
|
||||
std::sort(m_properties.begin(), m_properties.end(), [](const CommonStructuredDataStructEntry& e1, const CommonStructuredDataStructEntry& e2)
|
||||
{
|
||||
return e1.m_offset_in_bits < e2.m_offset_in_bits;
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user