summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-26 13:14:31 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-26 13:14:31 +0000
commitc250f7cf2d8bb7a35772033db3d2aa07d6fd3c82 (patch)
treea7a3fcdffb5e33a061f3538b92b4803c72ab945d /src/lib/config.h
parent192d6b19bff6f67992baf1ee7afc800e0ea03acd (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.h3
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;
};