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'

This commit is contained in:
John Emmas
2014-03-10 18:51:30 +00:00
parent a4752e057d
commit 5ccf1e7346

View 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