projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add config location versioning (#2090).
[dcpomatic.git]
/
src
/
lib
/
cross_osx.cc
diff --git
a/src/lib/cross_osx.cc
b/src/lib/cross_osx.cc
index d0cb9f216980846307f70c84745e98a38f5a18be..ff40ffb708aa8666a2e279b8362ce34663abd8c1 100644
(file)
--- 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;
}