1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-21 09:39:56 +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:
reader.getZString(mEditorId);
break;
case ESM4::SUB_FULL:
reader.getLocalizedString(mFullName);
break;
case ESM4::SUB_OBND:
case ESM4::SUB_MODL: // Model data start
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_ONAM:
case ESM4::SUB_DATA:
case ESM4::SUB_FLTR: // FO4
case ESM4::SUB_PTRN: // FO4
reader.skipSubRecordData();
break;

View File

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