From 1b29077206dd1ff55b05f904e1a630837829d64e Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Wed, 16 Aug 2023 12:37:17 +0300 Subject: [PATCH] Maybe load FO4 terminal records --- components/esm4/loadterm.cpp | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/components/esm4/loadterm.cpp b/components/esm4/loadterm.cpp index d2b11b98c0..39f26391e8 100644 --- a/components/esm4/loadterm.cpp +++ b/components/esm4/loadterm.cpp @@ -57,7 +57,11 @@ void ESM4::Terminal::load(ESM4::Reader& reader) reader.getFormId(mPasswordNote); break; case ESM4::SUB_SNAM: - reader.getFormId(mSound); + if (subHdr.dataSize == 4) + reader.getFormId(mSound); + // FIXME: FO4 sound marker params + else + reader.skipSubRecordData(); break; case ESM4::SUB_MODL: reader.getZString(mModel); @@ -68,6 +72,8 @@ void ESM4::Terminal::load(ESM4::Reader& reader) case ESM4::SUB_DNAM: // difficulty case ESM4::SUB_ANAM: // flags case ESM4::SUB_CTDA: + case ESM4::SUB_CIS1: + case ESM4::SUB_CIS2: case ESM4::SUB_INAM: case ESM4::SUB_ITXT: // Menu Item case ESM4::SUB_MODT: // Model data @@ -83,8 +89,25 @@ void ESM4::Terminal::load(ESM4::Reader& reader) case ESM4::SUB_SLSD: case ESM4::SUB_TNAM: case ESM4::SUB_OBND: + case ESM4::SUB_VMAD: + case ESM4::SUB_KSIZ: + case ESM4::SUB_KWDA: + case ESM4::SUB_BSIZ: // FO4 + case ESM4::SUB_BTXT: // FO4 + case ESM4::SUB_COCT: // FO4 + case ESM4::SUB_CNTO: // FO4 + case ESM4::SUB_FNAM: // FO4 + case ESM4::SUB_ISIZ: // FO4 + case ESM4::SUB_ITID: // FO4 + case ESM4::SUB_MNAM: // FO4 + case ESM4::SUB_NAM0: // FO4 case ESM4::SUB_PRPS: // FO4 case ESM4::SUB_PTRN: // FO4 + case ESM4::SUB_UNAM: // FO4 + case ESM4::SUB_VNAM: // FO4 + case ESM4::SUB_WBDT: // FO4 + case ESM4::SUB_WNAM: // FO4 + case ESM4::SUB_XMRK: // FO4 reader.skipSubRecordData(); break; default: