summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2023-03-18 20:03:49 +0100
committeravih <avih@users.noreply.github.com>2023-03-18 21:40:17 +0200
commita45995f6b83fc93c448080dc2e83b850c0682242 (patch)
tree1fff41520679a35ee5d9302c70fb6ae6b5dbfde1 /options/options.c
parente1727553f164181265f71a20106fbd5e34fa08b0 (diff)
downloadmpv-a45995f6b83fc93c448080dc2e83b850c0682242.tar.bz2
mpv-a45995f6b83fc93c448080dc2e83b850c0682242.tar.xz
options: enable scripts related opts also with cplugins.
If an mpv build neither supports lua nor javascript, but only cplugins, the scripts options are still usable to select which cplugins to load.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c
index 9fa786419b..5401ab126b 100644
--- a/options/options.c
+++ b/options/options.c
@@ -439,7 +439,7 @@ static const m_option_t mp_opts[] = {
.flags = CONF_NOCFG | CONF_PRE_PARSE | M_OPT_FILE},
{"reset-on-next-file", OPT_STRINGLIST(reset_options)},
-#if HAVE_LUA || HAVE_JAVASCRIPT
+#if HAVE_LUA || HAVE_JAVASCRIPT || HAVE_CPLUGINS
{"scripts", OPT_PATHLIST(script_files), .flags = M_OPT_FILE},
{"script", OPT_CLI_ALIAS("scripts-append")},
{"script-opts", OPT_KEYVALUELIST(script_opts)},