mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-06 19:01:21 +03:00
create project file when saving content file
This commit is contained in:
parent
96fd1c35bf
commit
5779f799ab
15 changed files with 113 additions and 44 deletions
|
@ -38,6 +38,11 @@ namespace ESM
|
|||
mHeader.mFormat = format;
|
||||
}
|
||||
|
||||
void ESMWriter::clearMaster()
|
||||
{
|
||||
mHeader.mMaster.clear();
|
||||
}
|
||||
|
||||
void ESMWriter::addMaster(const std::string& name, uint64_t size)
|
||||
{
|
||||
Header::MasterData d;
|
||||
|
|
|
@ -32,6 +32,8 @@ class ESMWriter
|
|||
void setRecordCount (int count);
|
||||
void setFormat (int format);
|
||||
|
||||
void clearMaster();
|
||||
|
||||
void addMaster(const std::string& name, uint64_t size);
|
||||
|
||||
void save(const std::string& file);
|
||||
|
|
|
@ -14,6 +14,7 @@ void ESM::Header::blank()
|
|||
mData.desc.assign ("");
|
||||
mData.records = 0;
|
||||
mFormat = CurrentFormat;
|
||||
mMaster.clear();
|
||||
}
|
||||
|
||||
void ESM::Header::load (ESMReader &esm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue