1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 22:53:53 +00:00

Maybe load FO4 static collection records

This commit is contained in:
Alexei Kotov 2023-08-16 07:03:29 +03:00
parent a3069ea863
commit 4d3edec59f
2 changed files with 5 additions and 0 deletions

View file

@ -46,6 +46,9 @@ void ESM4::StaticCollection::load(ESM4::Reader& reader)
case ESM4::SUB_EDID: case ESM4::SUB_EDID:
reader.getZString(mEditorId); reader.getZString(mEditorId);
break; break;
case ESM4::SUB_FULL:
reader.getLocalizedString(mFullName);
break;
case ESM4::SUB_OBND: case ESM4::SUB_OBND:
case ESM4::SUB_MODL: // Model data start case ESM4::SUB_MODL: // Model data start
case ESM4::SUB_MODT: case ESM4::SUB_MODT:
@ -54,6 +57,7 @@ void ESM4::StaticCollection::load(ESM4::Reader& reader)
case ESM4::SUB_MODF: // Model data end case ESM4::SUB_MODF: // Model data end
case ESM4::SUB_ONAM: case ESM4::SUB_ONAM:
case ESM4::SUB_DATA: case ESM4::SUB_DATA:
case ESM4::SUB_FLTR: // FO4
case ESM4::SUB_PTRN: // FO4 case ESM4::SUB_PTRN: // FO4
reader.skipSubRecordData(); reader.skipSubRecordData();
break; break;

View file

@ -46,6 +46,7 @@ namespace ESM4
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details std::uint32_t mFlags; // from the header, see enum type RecordFlag for details
std::string mEditorId; std::string mEditorId;
std::string mFullName;
void load(ESM4::Reader& reader); void load(ESM4::Reader& reader);
// void save(ESM4::Writer& writer) const; // void save(ESM4::Writer& writer) const;