diff options
author | wm4 <wm4@nowhere> | 2014-02-25 21:04:04 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-25 21:04:04 +0100 |
commit | 428ffb01cf4d8fdc3e2a61a9571388ae14e34f00 (patch) | |
tree | fcd730b7d0f8371bcdfc5ea1dafb0da2f3f8b8fa /options/options.c | |
parent | 2ea614ada6d31d2f9cebf7ea4eda05105b35e41d (diff) | |
download | mpv-428ffb01cf4d8fdc3e2a61a9571388ae14e34f00.tar.bz2 mpv-428ffb01cf4d8fdc3e2a61a9571388ae14e34f00.tar.xz |
config: add a --config-dir option to force config directory
Useful for slave-mode like uses, and not as radical as --no-config.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 4bac77c7b7..08e22594d8 100644 --- a/options/options.c +++ b/options/options.c @@ -236,6 +236,8 @@ const m_option_t mp_opts[] = { {"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL}, #endif OPT_FLAG("config", load_config, CONF_GLOBAL | CONF_NOCFG | CONF_PRE_PARSE), + OPT_STRING("config-dir", force_configdir, + CONF_GLOBAL | CONF_NOCFG | CONF_PRE_PARSE), OPT_STRINGLIST("reset-on-next-file", reset_options, CONF_GLOBAL), #if HAVE_LUA |