mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 21:45:33 +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)
|
void ESM::DebugProfile::load (ESMReader& esm)
|
||||||
{
|
{
|
||||||
|
mId = esm.getHNString ("NAME");
|
||||||
mDescription = esm.getHNString ("DESC");
|
mDescription = esm.getHNString ("DESC");
|
||||||
mScriptText = esm.getHNString ("SCRP");
|
mScriptText = esm.getHNString ("SCRP");
|
||||||
esm.getHNT (mFlags, "FLAG");
|
esm.getHNT (mFlags, "FLAG");
|
||||||
|
@ -16,6 +17,7 @@ void ESM::DebugProfile::load (ESMReader& esm)
|
||||||
|
|
||||||
void ESM::DebugProfile::save (ESMWriter& esm) const
|
void ESM::DebugProfile::save (ESMWriter& esm) const
|
||||||
{
|
{
|
||||||
|
esm.writeHNCString ("NAME", mId);
|
||||||
esm.writeHNCString ("DESC", mDescription);
|
esm.writeHNCString ("DESC", mDescription);
|
||||||
esm.writeHNCString ("SCRP", mScriptText);
|
esm.writeHNCString ("SCRP", mScriptText);
|
||||||
esm.writeHNT ("FLAG", mFlags);
|
esm.writeHNT ("FLAG", mFlags);
|
||||||
|
|
|
@ -9,12 +9,14 @@ unsigned int ESM::Filter::sRecordId = REC_FILT;
|
||||||
|
|
||||||
void ESM::Filter::load (ESMReader& esm)
|
void ESM::Filter::load (ESMReader& esm)
|
||||||
{
|
{
|
||||||
|
mId = esm.getHNString ("NAME");
|
||||||
mFilter = esm.getHNString ("FILT");
|
mFilter = esm.getHNString ("FILT");
|
||||||
mDescription = esm.getHNString ("DESC");
|
mDescription = esm.getHNString ("DESC");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ESM::Filter::save (ESMWriter& esm) const
|
void ESM::Filter::save (ESMWriter& esm) const
|
||||||
{
|
{
|
||||||
|
esm.writeHNCString ("NAME", mId);
|
||||||
esm.writeHNCString ("FILT", mFilter);
|
esm.writeHNCString ("FILT", mFilter);
|
||||||
esm.writeHNCString ("DESC", mDescription);
|
esm.writeHNCString ("DESC", mDescription);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue