mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 12:07:51 +03:00
set dependencies when saving (requires further refinements)
This commit is contained in:
parent
74d683b530
commit
6d9ff39390
3 changed files with 23 additions and 2 deletions
|
@ -2141,7 +2141,7 @@ void CSMDoc::Document::createBase()
|
|||
|
||||
CSMDoc::Document::Document (const std::vector<boost::filesystem::path>& files,
|
||||
const boost::filesystem::path& savePath, bool new_)
|
||||
: mSavePath (savePath), mTools (mData), mSaving (*this)
|
||||
: mSavePath (savePath), mContentFiles (files), mTools (mData), mSaving (*this)
|
||||
{
|
||||
if (files.empty())
|
||||
throw std::runtime_error ("Empty content file sequence");
|
||||
|
@ -2200,6 +2200,11 @@ const boost::filesystem::path& CSMDoc::Document::getSavePath() const
|
|||
return mSavePath;
|
||||
}
|
||||
|
||||
const std::vector<boost::filesystem::path>& CSMDoc::Document::getContentFiles() const
|
||||
{
|
||||
return mContentFiles;
|
||||
}
|
||||
|
||||
void CSMDoc::Document::save()
|
||||
{
|
||||
if (mSaving.isRunning())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue