From a45995f6b83fc93c448080dc2e83b850c0682242 Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Sat, 18 Mar 2023 20:03:49 +0100 Subject: [PATCH] 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. --- options/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/options.c b/options/options.c index 9fa786419be28..5401ab126ba74 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)},