diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-14 21:13:23 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-14 21:13:23 +0000 |
| commit | a6aa6b64b5a5e4c9263e4a519277cb5db213ba94 (patch) | |
| tree | 10dd0da151b7ace838294cd5e7020c206a8fd59b | |
| parent | 1b1137dac3167de7e4bb23d86a4f3505ad880675 (diff) | |
Add option to override config location in player.v2.13.86
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |
