summaryrefslogtreecommitdiff
path: root/libs/ardour/globals.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-03-27 01:04:59 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-03-27 01:04:59 +0000
commit948caba5889a7425cbca11c2eb339f27f5a27194 (patch)
treed8e59f5d2487abb502a28256319147de707968d7 /libs/ardour/globals.cc
parentee7c3042bdb870ea073b69a625b48e30bd6dab94 (diff)
total reimplementation of Configuration object internals to make adding new config vars an order of magnitude simpler. the actual path taken is a bit of a kludge, to put it mildly, but adding a new variable is now basically just one line in configuration_vars.h, and no work is required for serialization to/from ardour.rc.
git-svn-id: svn://localhost/trunk/ardour2@420 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r--libs/ardour/globals.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc
index e3953860e2..cad9edad8f 100644
--- a/libs/ardour/globals.cc
+++ b/libs/ardour/globals.cc
@@ -389,6 +389,7 @@ string
ARDOUR::find_config_file (string name)
{
char* envvar;
+
if ((envvar = getenv("ARDOUR_CONFIG_PATH")) == 0) {
envvar = CONFIG_DIR;
}