pofParser: flag 0x11: added unknown section when verbose

This commit is contained in:
Gwenhael Goavec-Merou 2025-02-01 08:08:59 +01:00
parent 8f46edc8b3
commit 8160e716e8
1 changed files with 8 additions and 0 deletions

View File

@ -144,6 +144,14 @@ uint32_t POFParser::parseSection(uint16_t flag, uint32_t pos, uint32_t size)
case 0x11: // cfg data
// 12 Bytes unknown
// followed by UFM/CFM/DSM data
if (_verbose) {
content = _raw_data.substr(pos, size);
uint32_t val0 = ARRAY2INT32((&content.c_str()[0]));
uint32_t val1 = ARRAY2INT32((&content.c_str()[4]));
uint32_t val2 = ARRAY2INT32((&content.c_str()[8]));
printf("Flag 0x11: Unknown %08x %08x %08x\n", val0, val1, val2);
}
_bit_data.resize(size);
std::copy(_raw_data.begin() + pos, _raw_data.begin() + pos + size,
_bit_data.begin());