summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-04-29 00:37:13 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-06 23:01:28 +0100
commit98dc7649dc211716da0c41bff0759d082bab95f8 (patch)
treec497d3b7e3188b28c1cbbed7939c8700a111626a /src/lib/config.h
parent02ceebef37974d4b76fe7007b5b6d28efd1c0657 (diff)
Allow command-line configuration of config location (#1284).
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 2fca9699c..c625e9242 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -721,8 +721,9 @@ public:
static bool have_existing (std::string);
static boost::filesystem::path config_file ();
- static boost::optional<boost::filesystem::path> test_path;
-
+ /** If set, this overrides the standard path (in home, Library, AppData or wherever) for config.xml and cinemas.xml */
+ static boost::optional<boost::filesystem::path> override_path;
+
private:
Config ();
static boost::filesystem::path path (std::string file, bool create_directories = true);