X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcross_linux.cc;h=ee49d50bc8ef8972da9f13d25b7f90680fc49396;hb=84039db657c3cc72719706a136c90741170c765a;hp=d142c416f7cbb296fd3facdfca37b0700fff3176;hpb=a5f481aae19a6ef5b0cad48edaea5b58fc00ee05;p=dcpomatic.git diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc index d142c416f..ee49d50bc 100644 --- a/src/lib/cross_linux.cc +++ b/src/lib/cross_linux.cc @@ -52,13 +52,10 @@ DCPOMATIC_ENABLE_WARNINGS using std::cerr; using std::cout; -using std::function; using std::ifstream; using std::list; using std::make_pair; using std::pair; -using std::runtime_error; -using std::shared_ptr; using std::string; using std::vector; using std::wstring; @@ -382,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; }