mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 15:09:43 +00:00
Add NAME handling to GameSetting record
This commit is contained in:
parent
09a3358017
commit
b2f3ccb080
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
#include "loadgmst.hpp"
|
||||
|
||||
#include "esmreader.hpp"
|
||||
#include "esmwriter.hpp"
|
||||
#include "defs.hpp"
|
||||
|
||||
namespace ESM
|
||||
|
@ -8,11 +10,13 @@ namespace ESM
|
|||
|
||||
void GameSetting::load (ESMReader &esm)
|
||||
{
|
||||
mId = esm.getHNString("NAME");
|
||||
mValue.read (esm, ESM::Variant::Format_Gmst);
|
||||
}
|
||||
|
||||
void GameSetting::save (ESMWriter &esm) const
|
||||
{
|
||||
esm.writeHNCString("NAME", mId);
|
||||
mValue.write (esm, ESM::Variant::Format_Gmst);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue