diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-24 11:16:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-24 11:16:24 +0100 |
| commit | 3412af70b950dcdc604413ef05c26becda6da789 (patch) | |
| tree | b901f89335ec7e06531b475dbb45ff1ee7087e28 /src/lib/config.cc | |
| parent | a26b6e9e392a1ac342a19e0d33d92865819c6ded (diff) | |
Bump libdcp for new method.
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index 4184a7d1d..383ffdbd6 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -588,3 +588,11 @@ Config::set_cinemas_file (boost::filesystem::path file) changed (OTHER); } + +void +Config::save_template (shared_ptr<const Film> film, string name) const +{ + boost::filesystem::create_directories (path ("templates")); + shared_ptr<xmlpp::Document> doc = film->metadata (false); + doc->write_to_file_formatted (path("templates") / tidy_for_filename (name)); +} |
