static const char* const devinfo_suffix = ".device";
static SearchPath
-system_devinfo_search_path ()
+devinfo_search_path ()
{
bool devinfo_path_defined = false;
sys::path spath_env (Glib::getenv (devinfo_env_variable_name, devinfo_path_defined));
return spath_env;
}
- SearchPath spath (system_data_search_path());
+ SearchPath spath (ardour_data_search_path());
spath.add_subdirectory_to_paths(devinfo_dir_name);
return spath;
}
-static sys::path
-user_devinfo_directory ()
-{
- sys::path p(user_config_directory());
- p /= devinfo_dir_name;
-
- return p;
-}
-
static bool
devinfo_filter (const string &str, void */*arg*/)
{
vector<string> s;
vector<string *> *devinfos;
PathScanner scanner;
- SearchPath spath (system_devinfo_search_path());
- spath += user_devinfo_directory ();
+ SearchPath spath (devinfo_search_path());
devinfos = scanner (spath.to_string(), devinfo_filter, 0, false, true);
device_info.clear ();