From 207ac16731baec44c939d85f25c8965d925d7983 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 31 Mar 2015 11:27:30 -0400 Subject: move "been here before" path concept into libardour, and use it appropriately at startup --- libs/ardour/filesystem_paths.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libs/ardour/filesystem_paths.cc') diff --git a/libs/ardour/filesystem_paths.cc b/libs/ardour/filesystem_paths.cc index 9005bd01a3..231bc84a3c 100644 --- a/libs/ardour/filesystem_paths.cc +++ b/libs/ardour/filesystem_paths.cc @@ -272,4 +272,15 @@ ardour_data_search_path () return search_path; } +string +been_here_before_path (int version) +{ + if (version < 0) { + version = atoi (PROGRAM_VERSION); + } + + return Glib::build_filename (user_config_directory (version), string (".a") + to_string (version, std::dec)); +} + + } // namespace ARDOUR -- cgit v1.2.3