Just noticed a small problem with my previous commit. Windows config files should...
authorJohn Emmas <johne53@tiscali.co.uk>
Mon, 10 Mar 2014 18:51:30 +0000 (18:51 +0000)
committerJohn Emmas <johne53@tiscali.co.uk>
Mon, 10 Mar 2014 18:51:30 +0000 (18:51 +0000)
libs/ardour/filesystem_paths.cc

index acb691d7dbd63ea3f9c102aa4fcf48714b04bb59..d889076717541d5ee13c37edbce795f587b6bf80 100644 (file)
@@ -62,8 +62,11 @@ user_config_directory ()
 #ifdef PLATFORM_WINDOWS
                std::string home_dir;
 
-               if (0 != PBD::get_win_special_folder(CSIDL_LOCAL_APPDATA))
+               if (0 != PBD::get_win_special_folder(CSIDL_LOCAL_APPDATA)) {
                        home_dir = PBD::get_win_special_folder(CSIDL_LOCAL_APPDATA);
+                       home_dir += "\\";
+                       home_dir += PROGRAM_NAME;
+               }
 #else
                const string home_dir = Glib::get_home_dir();
 #endif
@@ -118,8 +121,11 @@ user_cache_directory ()
 #ifdef PLATFORM_WINDOWS
                std::string home_dir;
 
-               if (0 != PBD::get_win_special_folder(CSIDL_LOCAL_APPDATA))
+               if (0 != PBD::get_win_special_folder(CSIDL_LOCAL_APPDATA)) {
                        home_dir = PBD::get_win_special_folder(CSIDL_LOCAL_APPDATA);
+                       home_dir += "\\";
+                       home_dir += PROGRAM_NAME;
+               }
 #else
                const string home_dir = Glib::get_home_dir();
 #endif