diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-26 00:09:04 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 11:32:49 +0200 |
| commit | ccacce39c39d16977ab6c1592fcb6e941b05ddff (patch) | |
| tree | 47c348ad4841efd64936b01db2a49eead46f67c8 /src/lib/cross_osx.cc | |
| parent | 18cb0e914922cd76e9c205e88962816970b5c0cb (diff) | |
Add config location versioning (#2090).
Diffstat (limited to 'src/lib/cross_osx.cc')
| -rw-r--r-- | src/lib/cross_osx.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/cross_osx.cc b/src/lib/cross_osx.cc index d0cb9f216..ff40ffb70 100644 --- a/src/lib/cross_osx.cc +++ b/src/lib/cross_osx.cc @@ -552,7 +552,7 @@ Drive::get () boost::filesystem::path -config_path () +config_path (optional<string> version) { boost::filesystem::path p; p /= g_get_home_dir (); @@ -560,6 +560,9 @@ config_path () p /= "Preferences"; p /= "com.dcpomatic"; p /= "2"; + if (version) { + p /= *version; + } return p; } |
