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.
This commit is contained in:
Oliver Freyermuth 2023-03-18 20:03:49 +01:00 committed by avih
parent e1727553f1
commit a45995f6b8
1 changed files with 1 additions and 1 deletions

View File

@ -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)},