diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2007-06-27 12:12:43 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2007-06-27 12:12:43 +0000 |
commit | e6986c036059c9f9d5608f0b33f8c6d6ca1664ad (patch) | |
tree | d40cdd179c612fb376db792eb0f9a53835f57cd7 /libs/ardour/filesystem_paths.cc | |
parent | 327cfc9cb5baf7e7f0e37bfa40ac60127be3c84b (diff) |
Add ARDOUR::system_data_search_path to ardour/filesystem_paths.h
git-svn-id: svn://localhost/ardour2/trunk@2062 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/filesystem_paths.cc')
-rw-r--r-- | libs/ardour/filesystem_paths.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/filesystem_paths.cc b/libs/ardour/filesystem_paths.cc index 69b00393a8..dd41198142 100644 --- a/libs/ardour/filesystem_paths.cc +++ b/libs/ardour/filesystem_paths.cc @@ -85,4 +85,22 @@ system_config_search_path () return config_path; } +SearchPath +system_data_search_path () +{ +#ifdef WITH_STATIC_PATHS + + SearchPath data_path(string(DATA_DIR)); + +#else + + SearchPath data_path(system_data_directories()); + +#endif + + data_path.add_subdirectory_to_paths("ardour2"); + + return data_path; +} + } // namespace ARDOUR |