1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 08:15:37 +00:00

Maybe load FO4 furniture records

This commit is contained in:
Alexei Kotov 2023-08-16 07:47:21 +03:00
parent 4237da5dfd
commit a188a90023

View file

@ -45,8 +45,14 @@ void ESM4::Furniture::load(ESM4::Reader& reader)
reader.getZString(mEditorId);
break;
case ESM4::SUB_FULL:
reader.getLocalizedString(mFullName);
{
std::string name;
reader.getLocalizedString(name);
// FIXME: subsequent FULL subrecords name object combinations (FO4)
if (mFullName.empty())
mFullName = name;
break;
}
case ESM4::SUB_MODL:
reader.getZString(mModel);
break;
@ -89,7 +95,23 @@ void ESM4::Furniture::load(ESM4::Reader& reader)
case ESM4::SUB_CTDA:
case ESM4::SUB_CIS1:
case ESM4::SUB_CIS2:
case ESM4::SUB_APPR: // FO4
case ESM4::SUB_ATTX: // FO4
case ESM4::SUB_CITC: // FO4
case ESM4::SUB_CNTO: // FO4
case ESM4::SUB_COCT: // FO4
case ESM4::SUB_COED: // FO4
case ESM4::SUB_FTYP: // FO4
case ESM4::SUB_NAM1: // FO4
case ESM4::SUB_NTRM: // FO4
case ESM4::SUB_NVNM: // FO4
case ESM4::SUB_PTRN: // FO4
case ESM4::SUB_SNAM: // FO4
case ESM4::SUB_WNAM: // FO4
case ESM4::SUB_OBTE: // FO4 object template start
case ESM4::SUB_OBTF:
case ESM4::SUB_OBTS:
case ESM4::SUB_STOP: // FO4 object template end
reader.skipSubRecordData();
break;
default: