mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 22:15:32 +00:00
Add NAME handling to DebugProfile and Filter records
This commit is contained in:
parent
71e5fc7f04
commit
b55a4999ca
2 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue