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:
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…
x
Reference in New Issue
Block a user