1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 12:49:40 +00:00

ported setting of meta data for saving to the new mechanism

This commit is contained in:
Marc Zinnschlag 2015-06-26 13:13:22 +02:00
parent f3ff90e1fd
commit 1870b087e7
3 changed files with 2 additions and 18 deletions

View file

@ -53,18 +53,16 @@ void CSMDoc::WriteHeaderStage::perform (int stage, Messages& messages)
mState.getWriter().clearMaster();
mState.getWriter().setFormat (0);
if (mSimple)
{
mState.getWriter().setAuthor ("");
mState.getWriter().setDescription ("");
mState.getWriter().setRecordCount (0);
mState.getWriter().setFormat (ESM::Header::CurrentFormat);
}
else
{
mState.getWriter().setAuthor (mDocument.getData().getAuthor());
mState.getWriter().setDescription (mDocument.getData().getDescription());
mDocument.getData().getMetaData().save (mState.getWriter());
mState.getWriter().setRecordCount (
mDocument.getData().count (CSMWorld::RecordBase::State_Modified) +
mDocument.getData().count (CSMWorld::RecordBase::State_ModifiedOnly) +

View file

@ -1114,16 +1114,6 @@ int CSMWorld::Data::count (RecordBase::State state) const
count (state, mPathgrids);
}
std::string CSMWorld::Data::getDescription() const
{
return mMetaData.getRecord (0).get().mDescription;
}
std::string CSMWorld::Data::getAuthor() const
{
return mMetaData.getRecord (0).get().mAuthor;
}
std::vector<std::string> CSMWorld::Data::getIds (bool listDeleted) const
{
std::vector<std::string> ids;

View file

@ -269,10 +269,6 @@ namespace CSMWorld
int count (RecordBase::State state) const;
///< Return number of top-level records with the given \a state.
std::string getDescription() const;
std::string getAuthor() const;
signals:
void idListChanged();