Make a backup of configuration when we load in a Version 2 file, and bump our config...
[dcpomatic.git] / src / lib / config.h
index d50e585e315ebee2c6e92abaceaac18bc2f99438..90ebb0b33c3518022837d033fda1d95ca56b74e8 100644 (file)
@@ -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;
 };