1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Bring ESM4 global variable reading up-to-date with FO76

This commit is contained in:
Alexei Kotov 2024-01-05 18:21:59 +03:00
parent f9825328d2
commit 0b63fafc6d
2 changed files with 5 additions and 7 deletions

View File

@ -44,19 +44,16 @@ void ESM4::GlobalVariable::load(ESM4::Reader& reader)
case ESM4::SUB_EDID:
reader.getZString(mEditorId);
break;
case ESM::fourCC("XALG"): // FO76
reader.get(mExtraFlags2);
break;
case ESM4::SUB_FNAM:
reader.get(mType);
break;
case ESM4::SUB_FLTV:
reader.get(mValue);
break;
case ESM4::SUB_FULL:
case ESM4::SUB_MODL:
case ESM4::SUB_MODB:
case ESM4::SUB_ICON:
case ESM4::SUB_DATA:
case ESM4::SUB_OBND: // TES5
case ESM4::SUB_VMAD: // TES5
case ESM::fourCC("NTWK"): // FO76
reader.skipSubRecordData();
break;
default:

View File

@ -42,6 +42,7 @@ namespace ESM4
{
ESM::FormId mId; // from the header
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details
std::uint64_t mExtraFlags2;
std::string mEditorId;