Maybe load FO4 note records

macos_ci_fix
Alexei Kotov 1 year ago
parent cfa19cf719
commit 32f8d08dd3

@ -53,8 +53,16 @@ void ESM4::Note::load(ESM4::Reader& reader)
case ESM4::SUB_ICON:
reader.getZString(mIcon);
break;
case ESM4::SUB_DATA:
case ESM4::SUB_MODB:
reader.get(mBoundRadius);
break;
case ESM4::SUB_YNAM:
reader.getFormId(mPickUpSound);
break;
case ESM4::SUB_ZNAM:
reader.getFormId(mDropSound);
break;
case ESM4::SUB_DATA:
case ESM4::SUB_MODT: // Model data
case ESM4::SUB_MODC:
case ESM4::SUB_MODS:
@ -64,6 +72,9 @@ void ESM4::Note::load(ESM4::Reader& reader)
case ESM4::SUB_TNAM:
case ESM4::SUB_XNAM:
case ESM4::SUB_OBND:
case ESM4::SUB_VMAD:
case ESM4::SUB_DNAM: // FO4
case ESM4::SUB_PNAM: // FO4
case ESM4::SUB_PTRN: // FO4
reader.skipSubRecordData();
break;

@ -48,6 +48,11 @@ namespace ESM4
std::string mModel;
std::string mIcon;
float mBoundRadius;
ESM::FormId mPickUpSound;
ESM::FormId mDropSound;
void load(ESM4::Reader& reader);
// void save(ESM4::Writer& writer) const;

Loading…
Cancel
Save