Add config location versioning (#2090).
[dcpomatic.git] / src / lib / cross_linux.cc
index 2fcec28910013fea3ef54cfc8519cbb5a49272ad..ee49d50bc8ef8972da9f13d25b7f90680fc49396 100644 (file)
@@ -379,11 +379,14 @@ Drive::unmount ()
 
 
 boost::filesystem::path
-config_path ()
+config_path (optional<string> version)
 {
        boost::filesystem::path p;
        p /= g_get_user_config_dir ();
        p /= "dcpomatic2";
+       if (version) {
+               p /= *version;
+       }
        return p;
 }