mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Print debug info about structured data def when compiled with the debug flag for it
This commit is contained in:
@ -46,6 +46,13 @@ void StructuredDataDefDumperNew::DumpEnum(const CommonStructuredDataEnum& _enum)
|
||||
|
||||
void StructuredDataDefDumperNew::DumpStruct(const CommonStructuredDataStruct& _struct)
|
||||
{
|
||||
#ifdef STRUCTUREDDATADEF_DEBUG
|
||||
Indent();
|
||||
m_stream << "// BitOffset: " << _struct.m_bit_offset << "\n";
|
||||
Indent();
|
||||
m_stream << "// Size (Byte): " << _struct.m_size_in_byte << "\n";
|
||||
#endif
|
||||
|
||||
Indent();
|
||||
|
||||
m_stream << "struct " << _struct.m_name << "\n";
|
||||
@ -78,6 +85,11 @@ void StructuredDataDefDumperNew::DumpDef(const CommonStructuredDataDef& def)
|
||||
|
||||
m_stream << "// ====================\n";
|
||||
|
||||
#ifdef STRUCTUREDDATADEF_DEBUG
|
||||
m_stream << "// Size (Byte): " << def.m_size_in_byte << "\n";
|
||||
m_stream << "// Checksum: " << def.m_checksum << "\n";
|
||||
#endif
|
||||
|
||||
m_stream << "version " << def.m_version << "\n{\n";
|
||||
IncIndent();
|
||||
|
||||
|
Reference in New Issue
Block a user