mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 09:36:37 +00:00
67bd6cd708
git ls-files -z | xargs -0 sed -i '1{/^$/d}'
27 lines
640 B
C++
27 lines
640 B
C++
#include "metadata.hpp"
|
|
|
|
#include <components/esm/loadtes3.hpp>
|
|
#include <components/esm/esmreader.hpp>
|
|
#include <components/esm/esmwriter.hpp>
|
|
|
|
void CSMWorld::MetaData::blank()
|
|
{
|
|
mFormat = ESM::Header::CurrentFormat;
|
|
mAuthor.clear();
|
|
mDescription.clear();
|
|
}
|
|
|
|
void CSMWorld::MetaData::load (ESM::ESMReader& esm)
|
|
{
|
|
mFormat = esm.getHeader().mFormat;
|
|
mAuthor = esm.getHeader().mData.author.toString();
|
|
mDescription = esm.getHeader().mData.desc.toString();
|
|
}
|
|
|
|
void CSMWorld::MetaData::save (ESM::ESMWriter& esm) const
|
|
{
|
|
esm.setFormat (mFormat);
|
|
esm.setAuthor (mAuthor);
|
|
esm.setDescription (mDescription);
|
|
}
|