summaryrefslogtreecommitdiff
path: root/libs/ardour/search_paths.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2014-03-10 15:59:12 +0000
committerJohn Emmas <johne53@tiscali.co.uk>2014-03-10 16:24:10 +0000
commit34c67ba85403fc0e785e2bf135581cd9ed8a3cd4 (patch)
tree114be346268a967b3bfcfc8afed4950c165086bf /libs/ardour/search_paths.cc
parentb32d9a1c70cb81680b75f3b02ae54d4e6afb20e5 (diff)
Move 'template_search_path()' and 'route_template_search_path()' into 'libs/ardour/search_paths.cc'
Diffstat (limited to 'libs/ardour/search_paths.cc')
-rw-r--r--libs/ardour/search_paths.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/ardour/search_paths.cc b/libs/ardour/search_paths.cc
index 09227f6347..0efcce6451 100644
--- a/libs/ardour/search_paths.cc
+++ b/libs/ardour/search_paths.cc
@@ -147,6 +147,22 @@ panner_search_path ()
return spath;
}
+Searchpath
+template_search_path ()
+{
+ Searchpath spath (ardour_data_search_path());
+ spath.add_subdirectory_to_paths(templates_dir_name);
+ return spath;
+}
+
+Searchpath
+route_template_search_path ()
+{
+ Searchpath spath (ardour_data_search_path());
+ spath.add_subdirectory_to_paths(route_templates_dir_name);
+ return spath;
+}
+
#ifdef PLATFORM_WINDOWS
const char*