From 4b0a20583015a9a6a0820f980f49f019d2dcd0b5 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 27 Jun 2007 12:12:06 +0000 Subject: Use ARDOUR::user_config_directory in Configuration::*instant_xml Stateful::add_instant_xml was modified so it would create the user config directory if it doesn't exist, create_directories may throw if it cannot be created. This isn't a change in behaviour as ARDOUR::get_user_ardour_path also throws an exception(although I can't see any existing code to handle it) git-svn-id: svn://localhost/ardour2/trunk@2043 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/stateful.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/pbd/stateful.cc') diff --git a/libs/pbd/stateful.cc b/libs/pbd/stateful.cc index 691c03fbad..da014d738f 100644 --- a/libs/pbd/stateful.cc +++ b/libs/pbd/stateful.cc @@ -78,6 +78,8 @@ Stateful::extra_xml (const string& str) void Stateful::add_instant_xml (XMLNode& node, const sys::path& directory_path) { + sys::create_directories (directory_path); // may throw + if (_instant_xml == 0) { _instant_xml = new XMLNode ("instant"); } -- cgit v1.2.3