diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-26 13:14:31 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-26 13:14:57 +0000 |
| commit | 65a510d3fce55aa4f3aa96cd06f8ab380eb73ed4 (patch) | |
| tree | 8d9c7fb3bb854fd544d185cab65754c747ed27a8 /src/lib/config.h | |
| parent | a5c7ea460adbde2cb87e8d2af0666e4c9c7df0d0 (diff) | |
Make a backup of configuration when we load in a Version 2 file, and bump our config file version to 3.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index d50e585e3..90ebb0b33 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -729,6 +729,7 @@ private: boost::shared_ptr<dcp::CertificateChain> create_certificate_chain (); boost::filesystem::path directory_or (boost::optional<boost::filesystem::path> dir, boost::filesystem::path a) const; void add_to_history_internal (std::vector<boost::filesystem::path>& h, boost::filesystem::path p); + void backup (); template <class T> void maybe_set (T& member, T new_value, Property prop = OTHER) { @@ -844,6 +845,8 @@ private: int _frames_in_memory_multiplier; boost::optional<int> _decode_reduction; + static int const _current_version; + /** Singleton instance, or 0 */ static Config* _instance; }; |
