From 5ccf1e7346c737b35a06969c9d46da22f088dad2 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Mon, 10 Mar 2014 18:51:30 +0000 Subject: Just noticed a small problem with my previous commit. Windows config files should be in 'Application Data/PROGRAM_NAME' rather than directly in 'Application Data' --- libs/ardour/filesystem_paths.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libs/ardour/filesystem_paths.cc b/libs/ardour/filesystem_paths.cc index acb691d7db..d889076717 100644 --- a/libs/ardour/filesystem_paths.cc +++ b/libs/ardour/filesystem_paths.cc @@ -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 -- cgit v1.2.3