Don't throw an error when the Butler says it is finished (#2097).
[dcpomatic.git] / src / lib / cross_windows.cc
index 486e9b5d588748cc56d738f035edfbdfd084103b..b3d9a1558add1fbd2f7e70a74a23b2017accc985 100644 (file)
@@ -394,7 +394,7 @@ maybe_open_console ()
 boost::filesystem::path
 home_directory ()
 {
-       return boost::filesystem::path(getenv("HOMEDRIVE")) / boost::filesystem::path(getenv("HOMEPATH"));
+       return boost::filesystem::path(getenv("userprofile"));
 }
 
 
@@ -672,11 +672,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;
 }