From a6aa6b64b5a5e4c9263e4a519277cb5db213ba94 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 14 Dec 2018 21:13:23 +0000 Subject: Add option to override config location in player. --- src/tools/dcpomatic_player.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index d61c8a5e0..11c152849 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -1000,6 +1000,7 @@ private: static const wxCmdLineEntryDesc command_line_description[] = { { wxCMD_LINE_PARAM, 0, 0, "DCP to load or create", wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, + { wxCMD_LINE_OPTION, "c", "config", "Directory containing config.xml", wxCMD_LINE_VAL_STRING, wxCMD_LINE_OPTION_MANDATORY }, { wxCMD_LINE_NONE, "", "", "", wxCmdLineParamType (0), 0 } }; @@ -1135,6 +1136,11 @@ private: _dcp_to_load = wx_to_std (parser.GetParam (0)); } + wxString config; + if (parser.Found("c", &config)) { + Config::override_path = wx_to_std (config); + } + return true; } -- cgit v1.2.3