Add NAME handling to DebugProfile and Filter records

openmw-38
Stanislav Bas 10 years ago
parent 71e5fc7f04
commit b55a4999ca

@ -9,6 +9,7 @@ unsigned int ESM::DebugProfile::sRecordId = REC_DBGP;
void ESM::DebugProfile::load (ESMReader& esm)
{
mId = esm.getHNString ("NAME");
mDescription = esm.getHNString ("DESC");
mScriptText = esm.getHNString ("SCRP");
esm.getHNT (mFlags, "FLAG");
@ -16,6 +17,7 @@ void ESM::DebugProfile::load (ESMReader& esm)
void ESM::DebugProfile::save (ESMWriter& esm) const
{
esm.writeHNCString ("NAME", mId);
esm.writeHNCString ("DESC", mDescription);
esm.writeHNCString ("SCRP", mScriptText);
esm.writeHNT ("FLAG", mFlags);

@ -9,12 +9,14 @@ unsigned int ESM::Filter::sRecordId = REC_FILT;
void ESM::Filter::load (ESMReader& esm)
{
mId = esm.getHNString ("NAME");
mFilter = esm.getHNString ("FILT");
mDescription = esm.getHNString ("DESC");
}
void ESM::Filter::save (ESMWriter& esm) const
{
esm.writeHNCString ("NAME", mId);
esm.writeHNCString ("FILT", mFilter);
esm.writeHNCString ("DESC", mDescription);
}

Loading…
Cancel
Save