Maybe load some FO4 static records

macos_ci_fix
Alexei Kotov 1 year ago
parent 1a7d68cd33
commit 5bce6d8d44

@ -669,6 +669,7 @@ namespace ESM4
SUB_BSMS = fourCC("BSMS"),
SUB_FMRI = fourCC("FMRI"),
SUB_FMRN = fourCC("FMRN"),
SUB_FTYP = fourCC("FTYP"),
SUB_HLTX = fourCC("HLTX"),
SUB_MLSI = fourCC("MLSI"),
SUB_MPGN = fourCC("MPGN"),
@ -686,6 +687,7 @@ namespace ESM4
SUB_NTOP = fourCC("NTOP"),
SUB_PRPS = fourCC("PRPS"),
SUB_PTOP = fourCC("PTOP"),
SUB_PTRN = fourCC("PTRN"),
SUB_RBPC = fourCC("RBPC"),
SUB_REPT = fourCC("REPT"),
SUB_SADD = fourCC("SADD"),

@ -44,6 +44,9 @@ void ESM4::Static::load(ESM4::Reader& reader)
case ESM4::SUB_EDID:
reader.getZString(mEditorId);
break;
case ESM4::SUB_FULL:
reader.getLocalizedString(mFullName);
break;
case ESM4::SUB_MODL:
reader.getZString(mModel);
break;
@ -86,7 +89,12 @@ void ESM4::Static::load(ESM4::Reader& reader)
case ESM4::SUB_DNAM:
case ESM4::SUB_BRUS: // FONV
case ESM4::SUB_RNAM: // FONV
// FO4
case ESM4::SUB_FTYP:
case ESM4::SUB_NVNM:
case ESM4::SUB_PRPS:
case ESM4::SUB_PTRN:
case ESM4::SUB_VMAD:
reader.skipSubRecordData();
break;
default:

@ -47,6 +47,7 @@ namespace ESM4
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details
std::string mEditorId;
std::string mFullName;
std::string mModel;
float mBoundRadius;

Loading…
Cancel
Save