From ccacce39c39d16977ab6c1592fcb6e941b05ddff Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 26 Sep 2021 00:09:04 +0200 Subject: Add config location versioning (#2090). --- src/lib/cross_linux.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/cross_linux.cc') diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc index 2fcec2891..ee49d50bc 100644 --- a/src/lib/cross_linux.cc +++ b/src/lib/cross_linux.cc @@ -379,11 +379,14 @@ Drive::unmount () boost::filesystem::path -config_path () +config_path (optional version) { boost::filesystem::path p; p /= g_get_user_config_dir (); p /= "dcpomatic2"; + if (version) { + p /= *version; + } return p; } -- cgit v1.2.3