1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 18:32:36 +00:00

Add NAME handling to DebugProfile and Filter records

This commit is contained in:
Stanislav Bas 2015-07-13 22:37:14 +03:00
parent 71e5fc7f04
commit b55a4999ca
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);
}