From 6f42d28d5ec35557927e7d0a31b58d96fcb7fcc7 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 1 Feb 2025 08:09:29 +0100 Subject: [PATCH] pofParser: honour CFM1/CFM2 data pointer --- src/pofParser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pofParser.cpp b/src/pofParser.cpp index 8b2aa4a..b11f55d 100644 --- a/src/pofParser.cpp +++ b/src/pofParser.cpp @@ -97,6 +97,10 @@ int POFParser::parse() /* update pointers to memory area */ ptr = (uint8_t *)_bit_data.data(); mem_section["CFM0"].data = &ptr[mem_section["CFM0"].offset + 0x0C]; + if (mem_section.find("CFM1") != mem_section.end()) + mem_section["CFM1"].data = &ptr[mem_section["CFM1"].offset + 0x0C]; + if (mem_section.find("CFM2") != mem_section.end()) + mem_section["CFM2"].data = &ptr[mem_section["CFM2"].offset + 0x0C]; mem_section["UFM"].data = &ptr[mem_section["UFM"].offset + 0x0C]; mem_section["ICB"].data = &ptr[mem_section["ICB"].offset + 0x0C];