summaryrefslogtreecommitdiff
path: root/libs/ardour/filesystem_paths.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2014-03-10 18:51:30 +0000
committerJohn Emmas <johne53@tiscali.co.uk>2014-03-10 18:51:30 +0000
commit5ccf1e7346c737b35a06969c9d46da22f088dad2 (patch)
tree0c20cf3e066362082e73a810253b5cb7d1d44004 /libs/ardour/filesystem_paths.cc
parenta4752e057d6a265aee919acdf348adccab9126a7 (diff)
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'
Diffstat (limited to 'libs/ardour/filesystem_paths.cc')
-rw-r--r--libs/ardour/filesystem_paths.cc10
1 files 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